Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty plots in minifollowups #3510

Merged
merged 3 commits into from
Oct 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bin/minifollowups/pycbc_injection_minifollowup
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,19 @@ for num_event in range(num_events):

injection_index = missed[sorting][num_event]
time = f['injections/end_time'][injection_index]

lon = f['injections/longitude'][injection_index]
lat = f['injections/latitude'][injection_index]

ifo_times = ''
inj_params = {}
for val in ['mass1', 'mass2', 'spin1z', 'spin2z', 'end_time']:
inj_params[val] = f['injections/%s' %(val,)][injection_index]
for single in single_triggers:
ifo = single.ifo
for seg in insp_data_seglists[single.ifo]:
if time in seg:
det = Detector(ifo)
lon = f['injections/longitude'][injection_index]
lat = f['injections/latitude'][injection_index]
ifo_time = time + det.time_delay_from_earth_center(lon, lat, time)
det = Detector(ifo)
ifo_time = time + det.time_delay_from_earth_center(lon, lat, time)
for seg in insp_analysed_seglists[ifo]:
if ifo_time in seg:
break
else:
ifo_time = -1.0
Expand Down