From 2ac9bc55553b7c7e45fde608292d6abb4e844b87 Mon Sep 17 00:00:00 2001 From: Matthias Probst Date: Thu, 14 Mar 2024 22:02:28 +0100 Subject: [PATCH] Update table.py --- h5rdmtoolbox/convention/standard_names/table.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/h5rdmtoolbox/convention/standard_names/table.py b/h5rdmtoolbox/convention/standard_names/table.py index aa135493..edf8c04a 100644 --- a/h5rdmtoolbox/convention/standard_names/table.py +++ b/h5rdmtoolbox/convention/standard_names/table.py @@ -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', @@ -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():