Skip to content

Commit

Permalink
Trying something
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeb245 committed Jul 21, 2023
1 parent 565afb0 commit e72de45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/pygrb/pycbc_grb_trig_cluster
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def slice_hdf5(inputfile, outfile, include, verbose=False):
nevents = include.size

with h5py.File(inputfile, "r") as h5in:
ifos = [k for k in h5in.keys() if k != "network"]
ifos = [k for k in h5in.keys() if k not in ("network", "search")]

# find which single-ifo events to keep
ifo_index = {
Expand Down
5 changes: 1 addition & 4 deletions bin/pygrb/pycbc_grb_trig_combiner
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def merge_hdf5_files(inputfiles, outputfile, verbose=False, **compression_kw):

# handle search datasets as a special case
# (they will the same in all files)
search_datasets = set(filter(lambda x: "/search/" in x, dataset_names))
search_datasets = set(filter(lambda x: "search/" in x, dataset_names))

# record where we are in the global dataset
position = defaultdict(int)
Expand Down Expand Up @@ -492,9 +492,6 @@ vprint("-- Merging events")
if args.short_slides and args.long_slides:
raise NotImplementedError

elif args.short_slides and not args.long_slides:
raise NotImplementedError

else:
outfilename = "{}-{}_ALL_TIMES-{}-{}.h5".format(
args.ifo_tag, args.user_tag, start, end-start,
Expand Down

0 comments on commit e72de45

Please sign in to comment.