ensure right type for files for ms1
This commit is contained in:
parent
bc1b496794
commit
2c002a201a
1 changed files with 4 additions and 0 deletions
|
|
@ -222,6 +222,10 @@ def import_toml(path: Path, file: str, copy_file: bool=True) -> None:
|
||||||
|
|
||||||
elif project['code'] == 'openQCD':
|
elif project['code'] == 'openQCD':
|
||||||
if md['measurement'] == 'ms1':
|
if md['measurement'] == 'ms1':
|
||||||
|
if not (isinstance(md['files'], list)):
|
||||||
|
raise ValueError("files has to be a list of strings")
|
||||||
|
if not all(isinstance(f, str) for f in md["files"]):
|
||||||
|
raise ValueError("files has to be a list of strings")
|
||||||
if 'param_file' in md.keys():
|
if 'param_file' in md.keys():
|
||||||
parameter_file = md['param_file']
|
parameter_file = md['param_file']
|
||||||
if parameter_file.endswith(".ms1.in"):
|
if parameter_file.endswith(".ms1.in"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue