Skip to content

Commit

Permalink
minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Oct 11, 2023
1 parent 4d27e15 commit 019addb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/all_sky_search/pycbc_make_bayestar_skymap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The wrapper needs to exist as the XML format doesnt allow us to indicate
the low frequency cutoff or waveform used. We also want to be able to control
the output filename which is not possible in bayestar-localize-coincs
Unrecognised options will be passed straight to the subprocess
Unrecognised options will be passed straight to the bayestar subprocess
"""

import argparse
Expand Down
5 changes: 2 additions & 3 deletions bin/all_sky_search/pycbc_prepare_xml_for_gracedb
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,12 @@ for coinc_map in coinc_event_map_table:
# these may not have contributed a trigger
# Convert the SNR dict to be keyed on IFO-only:
snr_curr_event = {snr_key[0]: snr_v
for snr_key, snr_v in snr_timeseries.items()
if abs(snr_key[1] - time) < 0.1}
for snr_key, snr_v in snr_timeseries.items()}

# IFOs from SNR timeseries:
psds_curr_event = {}
psddict = {}
for ifo in ifos:
for ifo in snr_curr_event.keys():
psd = psds[ifo]

psd = psd[psd.find(time)].psd
Expand Down

0 comments on commit 019addb

Please sign in to comment.