Skip to content

Commit 3e9aa88

Browse files
committed
key convention
1 parent 32b183a commit 3e9aa88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ulc_mm_package/QtGUI/study_metadata_form.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ def get_cfg_from_study_id(study_id: str) -> Optional[Dict]:
241241
return None
242242
studies = list_available_studies()
243243
for study in studies:
244-
cfg_study_id = studies[study]["study_description"]["id"]
244+
cfg_study_id = studies[study]["study_description"]["key"]
245245
if study_id == cfg_study_id:
246246
return studies[study]
247247
else:
248248
raise ValueError(f"No matching study found for {study_id}")
249249

250250

251251
def get_study_id_from_name(study_name: str) -> str:
252-
return list_available_studies()[study_name]["study_description"]["id"]
252+
return list_available_studies()[study_name]["study_description"]["key"]

0 commit comments

Comments
 (0)