Skip to content

Commit

Permalink
Update table.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasprobst committed Mar 14, 2024
1 parent 9555bfd commit 2ac9bc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion h5rdmtoolbox/convention/standard_names/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def from_yaml(yaml_filename):

@staticmethod
def from_dict(snt_dict: Dict):
"""Initialize a StandardNameTable from a YAML file"""
"""Initialize a StandardNameTable from a dictionary"""

DEFAULT_KEYS = ['standard_names',
'name',
Expand Down Expand Up @@ -708,6 +708,7 @@ def from_zenodo(doi_or_recid: str) -> "StandardNameTable":
filenames = z.download_files(target_folder=UserDir['standard_name_tables'])
assert len(filenames) == 1
filename = filenames[0]
assert filename.exists()
assert filename.suffix == '.yaml'
new_filename = UserDir['standard_name_tables'] / f'{rec_id}.yaml'
if new_filename.exists():
Expand Down

0 comments on commit 2ac9bc5

Please sign in to comment.