Skip to content
Snippets Groups Projects

Adapt code for the lbexec command (incl. removal of run-mc)

Merged Davide Fazzini requested to merge dfazzini_adapt_code_for_lbexec into master
1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
@@ -68,8 +68,16 @@ def set_input_file_options(options, fileDB_key, fileDB_file):
idxFile = int(fileDB_key.split(":")[1])
fileDB_key = fileDB_key.split(":")[0]
valid_properties = ['filenames', 'qualifiers', 'metadata']
# Given a specific key, loop over the elements of the testfileDB
for item, obj in test_file_db[fileDB_key].items():
# Check if there are no typo in the fileDB properties
if item not in valid_properties:
message = f"Property {item} not recognised! Please check the key {fileDB_key} in {fileDB_file}\n"
message += f"Valid property names: {valid_properties}"
raise DVOptionError(item, message)
# Set all the file quelifiers:
if item == 'qualifiers':
for prop, value in obj.items():
Loading