Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions data_scripts/dag/add_dag_intens.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,18 +290,11 @@ def write_func(outs):
out_db.close()

if len(arg_dicts) == 0:
print(
f"No matching entries found for pred DAGs ({pred_dag_path}) and true DAGs ({true_dag_path}). "
f"Creating empty output at {out_dag_path}."
raise ValueError(
f"No matching entries found for pred DAGs ({pred_dag_path}) and "
f"true DAGs ({true_dag_path}). Verify that spectrum IDs and "
"collision energies use matching conventions."
)
if args.magma_output:
out_h5 = common.HDF5Dataset(out_dag_path, mode='w')
out_h5.close()
else:
out_db = common.PredSpecDB(out_dag_path, mode='w')
out_db.close()
print("success!")
return

# Run
wrapper_fn = lambda arg_dict: relabel_tree(**arg_dict)
Expand Down
Loading