put more cli

This commit is contained in:
Justus Kuhlmann 2024-08-26 12:48:51 +00:00
commit 975501635a
3 changed files with 22 additions and 6 deletions

View file

@ -18,7 +18,6 @@ import os
def check_project_data(d):
print(d.keys())
if 'project' not in d.keys() or 'measurements' not in d.keys() or len(list(d.keys())) > 2:
raise ValueError('There should only be two key on the top level, "project" and "measurements"!')
project_data = d['project']
@ -49,7 +48,6 @@ def import_toml(path, file, copy_file=True):
project = toml_dict['project']
measurements = toml_dict['measurements']
uuid = import_project(path, project['url'])
print(measurements.items())
for mname, md in measurements.items():
print("Import measurement: " + mname)
ensemble = md['ensemble']