catch small bug
This commit is contained in:
parent
01f1ec69c2
commit
5198488810
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue