fix small bugs

This commit is contained in:
Justus Kuhlmann 2025-04-07 19:59:26 +00:00
commit 77ee4993f0
2 changed files with 9 additions and 5 deletions

View file

@ -89,7 +89,8 @@ def import_toml(path: str, file: str, copy_file: bool=True) -> None:
elif project['code'] == 'openQCD':
param = openQCD.read_param(path, uuid, md['param_file'])
param['type'] = md['measurement']
measurement = openQCD.read_rwms(path, uuid, md['path'], md["prefix"], version=md["version"], names=md['names'], files=md['files'])
measurement = openQCD.read_rwms(path, uuid, md['path'], param, md["prefix"], version=md["version"], names=md['names'], files=md['files'])
write_measurement(path, ensemble, measurement, uuid, project['code'], md['param_file'])
if not os.path.exists(os.path.join(path, "toml_imports", uuid)):
@ -122,5 +123,5 @@ def reimport_project(path, uuid):
def update_project(path, uuid):
dl.update(os.path.join(path, "projects", uuid), how='merge', follow='parentds')
reimport_project(path, uuid)
dl.update(how='merge', follow='sibling', dataset=os.path.join(path, "projects", uuid))
# reimport_project(path, uuid)