Skip to content
Snippets Groups Projects
Commit a8ca87cd authored by James Clark's avatar James Clark
Browse files

NRHDF5 file existence check

parent ca6d829e
No related branches found
No related tags found
No related merge requests found
......@@ -322,6 +322,10 @@ if injfile is not None: #and cp.has_option('injections','nrhdf5'):
# Modify xml IN WORKDIR to point to local hdf5
localize_xml(os.path.join(workdir, injfile), nr_full_path, numrel_data)
else:
print("NRHDF5 does not exist at {}".format(numrel_data),
file=sys.stderr)
sys.exit(1)
else:
numrel_data = None
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment