1 line shorter

This commit is contained in:
Justus Kuhlmann 2025-03-31 13:59:44 +00:00
parent dbd493921f
commit dd2bbb5879

View file

@ -69,8 +69,7 @@ def import_toml(path: str, file: str, copy_file: bool=True) -> None:
else: else:
measurement = sfcf.read_data(path, uuid, md['path'], md['prefix'], param, measurement = sfcf.read_data(path, uuid, md['path'], md['prefix'], param,
version=md['version'], cfg_seperator=md['cfg_seperator'], sep='/') version=md['version'], cfg_seperator=md['cfg_seperator'], sep='/')
write_measurement(path, ensemble, measurement, uuid, write_measurement(path, ensemble, measurement, uuid, project['code'], md['param_file'])
project['code'], md['param_file'])
print(mname + " imported.") print(mname + " imported.")
if not os.path.exists(os.path.join(path, "toml_imports", uuid)): if not os.path.exists(os.path.join(path, "toml_imports", uuid)):
os.makedirs(os.path.join(path, "toml_imports", uuid)) os.makedirs(os.path.join(path, "toml_imports", uuid))