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 dba82e2 commit 4c43f3c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/jimgw/single_event/runManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,6 @@ def initialize_likelihood(
"""
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)

# detectors = ifos

waveform = self.initialize_waveform()
name = self.run.likelihood_parameters["name"]
assert isinstance(name, str), "Likelihood name must be a string."
Expand Down Expand Up @@ -299,7 +287,6 @@ def initialize_detector(self) -> list[Detector]:
detector = detector_preset[name]
if not self.run.injection:
print("Loading real data.")
raise ValueError("for debugging purpose")
detector.load_data(
trigger_time=trigger_time,
gps_start_pad=int(epoch),
Expand Down

0 comments on commit 4c43f3c

Please sign in to comment.