diff options
author | tlatorre <tlatorre@uchicago.edu> | 2020-12-21 11:53:06 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2020-12-21 11:53:06 -0600 |
commit | 4448dc714d2fba1f584c705ba2e50a24f4eecdb4 (patch) | |
tree | cf2a2eda011a734708f7e789db2fdbdcb9567a51 /utils/dm-search | |
parent | 211dcc3ddf9fa6f266d0c8f469b4adef8a91735b (diff) | |
download | sddm-4448dc714d2fba1f584c705ba2e50a24f4eecdb4.tar.gz sddm-4448dc714d2fba1f584c705ba2e50a24f4eecdb4.tar.bz2 sddm-4448dc714d2fba1f584c705ba2e50a24f4eecdb4.zip |
fix rhdr check
Diffstat (limited to 'utils/dm-search')
-rwxr-xr-x | utils/dm-search | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/dm-search b/utils/dm-search index 731923c..24fb6a0 100755 --- a/utils/dm-search +++ b/utils/dm-search @@ -690,9 +690,9 @@ if __name__ == '__main__': #muon = ev[ev.muon & ev.prompt & ~ev.atm] #muon_atm = ev[ev.muon & ev.prompt & ev.atm] - if (~rhdr.run.isin(ev_mc.run)).any(): + if (~ev.run.isin(ev_mc.run)).any(): print_warning("Error! The following runs have no Monte Carlo: %s" % \ - rhdr.run[~rhdr.run.isin(ev_mc.run)].values) + np.unique(ev.run[~ev.run.isin(ev_mc.run)].values)) sys.exit(1) if not args.pull and not args.test: |