From 4e23b6f24986cac4fe71447b3aab2ba0b6ef38c2 Mon Sep 17 00:00:00 2001 From: Oliver Strickson Date: Fri, 25 Aug 2023 17:40:33 +0100 Subject: [PATCH] Tags default to empty Tuple (#616, one item) --- scivision/catalog/catalog.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scivision/catalog/catalog.py b/scivision/catalog/catalog.py index f08f1270..e90696bf 100644 --- a/scivision/catalog/catalog.py +++ b/scivision/catalog/catalog.py @@ -89,7 +89,11 @@ class CatalogModelEntry(BaseModel, extra="forbid", title="A model catalog entry" description="A list of institutions that produced or are associated with " "the model (one per item)", ) - tags: Tuple[str, ...] + tags: Tuple[str, ...] = Field( + (), + title="Tags", + description="A list of free-form labels to associate with a model", + ) def __getitem__(self, item): return getattr(self, item) @@ -130,7 +134,8 @@ class CatalogDatasourceEntry( None, title="Suitable tasks", description="For which task or tasks is this datasource likely to be " - "suitable? (Select any number of the following items)", + "suitable? (Select any number of these -- try holding Ctrl or Option " + "to select more than one)", ) labels_provided: bool = Field( False, @@ -167,7 +172,7 @@ class CatalogDatasourceEntry( tags: Tuple[str, ...] = Field( (), title="Tags", - description="A list of free-form data to associate with the dataset", + description="A list of free-form labels to associate with a datasource", ) def __getitem__(self, item):