Skip to content

Commit

Permalink
Changed to one-liner and added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtrevor committed Aug 31, 2023
1 parent 3630218 commit 32be3d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/all_sky_search/pycbc_bin_trigger_rates_dq
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ with h5.File(args.bank_file, 'r') as bank:
logging.info('Sorting bank into bins...')
data = {'mass1': bank['mass1'][:], 'mass2': bank['mass2'][:],
'spin1z': bank['spin1z'][:], 'spin2z': bank['spin2z'][:]}
f_low = np.ones(len(data['mass1'])) * 15.
data['f_lower'] = f_low
# hardcoding low frequency cutoff to 15 Hz for uniformity
data['f_lower'] = np.ones(len(data['mass1'])) * 15.
locs_dict = pycbc.events.background_bin_from_string(
args.background_bins, data)
del data
Expand Down

0 comments on commit 32be3d9

Please sign in to comment.