Skip to content

Commit

Permalink
Debug detector test
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyuon committed Sep 5, 2024
1 parent 8a3d3b6 commit 87e19ce
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/jimgw/single_event/runManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,18 @@ def initialize_likelihood(
heterodyned likelihood.
"""
# detectors = self.initialize_detector()
detectors = self.initialize_detector()

from jimgw.single_event.detector import H1, L1
duration = 16
post_trigger_duration = 8
start_pad = duration - post_trigger_duration
end_pad = post_trigger_duration
ifos = [H1, L1]
for ifo in ifos:
ifo.load_data(1135136350.6, start_pad, end_pad, 20.0, 1024.0, psd_pad=32, tukey_alpha=0.2)
# from jimgw.single_event.detector import H1, L1
# duration = 16
# post_trigger_duration = 8
# start_pad = duration - post_trigger_duration
# end_pad = post_trigger_duration
# ifos = [H1, L1]
# for ifo in ifos:
# ifo.load_data(1135136350.6, start_pad, end_pad, 20.0, 1024.0, psd_pad=32, tukey_alpha=0.2)

detectors = ifos
# detectors = ifos

waveform = self.initialize_waveform()
name = self.run.likelihood_parameters["name"]
Expand Down Expand Up @@ -307,6 +307,7 @@ def initialize_detector(self) -> list[Detector]:
f_min=f_min,
f_max=f_max,
tukey_alpha=tukey_alpha,
sd
)
else:
print("Injection mode. Need to wait until waveform model is loaded.")
Expand Down

0 comments on commit 87e19ce

Please sign in to comment.