catch small bug

This commit is contained in:
Justus Kuhlmann 2025-06-30 10:10:45 +00:00
parent 01f1ec69c2
commit 5198488810

View file

@ -95,11 +95,9 @@ def import_toml(path: str, file: str, copy_file: bool=True) -> None:
project: dict = toml_dict['project']
if project['code'] not in known_codes:
raise ValueError('Code' + project['code'] + 'has no import implementation!')
constants: dict = toml_dict['constants']
measurements: dict = toml_dict['measurements']
measurements = fill_cons(measurements, constants)
measurements = fill_cons(measurements, toml_dict['constants'] if 'constants' in toml_dict else {})
measurements = replace_in_meas(measurements, toml_dict['replace'] if 'replace' in toml_dict else {})
print(measurements)
check_measurement_data(measurements, project['code'])
aliases = project.get('aliases', None)
uuid = project.get('uuid', None)