Skip to content

Commit

Permalink
Get number of sets right for bar updating
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeb245 committed Jul 24, 2023
1 parent 61c17b4 commit 232ff0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/pygrb/pycbc_grb_trig_cluster
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def slice_hdf5(inputfile, outfile, include, verbose=False):
) for ifo in ifos
}

nsets = sum(isinstance(item, h5py.Dataset) for
nsets = sum(isinstance(item, h5py.Dataset)
or isinstance(item, h5py.Group) for
group in h5in.values() for
item in group.values())
msg = "Slicing {} network events into new file".format(nevents)
Expand Down

0 comments on commit 232ff0d

Please sign in to comment.