diff --git a/corrlib/toml.py b/corrlib/toml.py index 07de93d..def5394 100644 --- a/corrlib/toml.py +++ b/corrlib/toml.py @@ -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)