aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-12-25 07:53:54 -0600
committertlatorre <tlatorre@uchicago.edu>2020-12-25 07:53:54 -0600
commit0bd14cc5fcbf839c6259ecbc3f8eca6b6a53bd4d (patch)
tree29bf67185b697f050900855a938ca0850c69edd1
parentec98b0f8e39384fce04f20c33045766ace115718 (diff)
downloadsddm-0bd14cc5fcbf839c6259ecbc3f8eca6b6a53bd4d.tar.gz
sddm-0bd14cc5fcbf839c6259ecbc3f8eca6b6a53bd4d.tar.bz2
sddm-0bd14cc5fcbf839c6259ecbc3f8eca6b6a53bd4d.zip
don't exit if some runs don't have MC
-rwxr-xr-xutils/chi21
-rwxr-xr-xutils/dm-search1
2 files changed, 0 insertions, 2 deletions
diff --git a/utils/chi2 b/utils/chi2
index bd848ba..4c1309b 100755
--- a/utils/chi2
+++ b/utils/chi2
@@ -530,7 +530,6 @@ if __name__ == '__main__':
if (~rhdr.run.isin(ev_mc.run)).any():
print_warning("Error! The following runs have no Monte Carlo: %s" % \
np.unique(rhdr.run[~rhdr.run.isin(ev_mc.run)].values))
- sys.exit(1)
muon_mc = get_events(args.muon_mc, merge_fits=True, nhit_thresh=args.nhit_thresh, mc=True)
weights = pd.concat([read_hdf(filename, "weights") for filename in args.weights],ignore_index=True)
diff --git a/utils/dm-search b/utils/dm-search
index b553035..8e2473c 100755
--- a/utils/dm-search
+++ b/utils/dm-search
@@ -609,7 +609,6 @@ if __name__ == '__main__':
if (~rhdr.run.isin(ev_mc.run)).any():
print_warning("Error! The following runs have no Monte Carlo: %s" % \
np.unique(rhdr.run[~rhdr.run.isin(ev_mc.run)].values))
- sys.exit(1)
muon_mc = get_events(args.muon_mc, merge_fits=True, nhit_thresh=args.nhit_thresh, mc=True)
weights = pd.concat([read_hdf(filename, "weights") for filename in args.weights],ignore_index=True)