From 5198488810a5730c7a5007e035a539daeda9d043 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Mon, 30 Jun 2025 10:10:45 +0000 Subject: [PATCH] catch small bug --- corrlib/toml.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)