Skip to content

Commit

Permalink
update metadata-template
Browse files Browse the repository at this point in the history
  • Loading branch information
dougiesquire committed Mar 28, 2024
1 parent f218534 commit 924bde3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
schema_version: <The version of the schema (string)>
name: <REQUIRED The name of the experiment (string)>
experiment_uuid: <REQUIRED Unique uuid for the experiment (string)>
description: <REQUIRED Short description of the experiment (string, < 150 char)>
Expand Down
4 changes: 2 additions & 2 deletions src/access_nri_intake/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .catalog import EXP_JSONSCHEMA, translators
from .catalog.manager import CatalogManager
from .source import builders
from .utils import load_metadata_yaml
from .utils import _can_be_array, load_metadata_yaml


class MetadataCheckError(Exception):
Expand Down Expand Up @@ -258,7 +258,7 @@ def metadata_template():
else:
description = f"<{descr['description']}>"

if descr["type"] == "array":
if _can_be_array(descr):
description = [description]

template[name] = description
Expand Down

0 comments on commit 924bde3

Please sign in to comment.