Skip to content

Commit

Permalink
Debug test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed Nov 19, 2024
1 parent 01ffcea commit f64d5e8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/toast/tests/ops_hwpss_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ def test_hwpss_relcal_fixed(self):
harmonics=n_harmonics,
relcal_fixed="calibration",
subtract_model=True,
fill_gaps=True,
# fill_gaps=True,
fill_gaps=False,
debug=debug,
)
hwpss_model.apply(data)
Expand All @@ -390,7 +391,7 @@ def test_hwpss_relcal_fixed(self):
good = ob.detdata[defaults.det_flags][det] == 0
original_rms = np.std(ob.detdata["original"][det][good])
filtered_rms = np.std(ob.detdata[defaults.det_data][det][good])
# print(f"{ob.name}[{det}]: {filtered_rms} <? {original_rms}")
print(f"{ob.name}[{det}]: {filtered_rms} <? {original_rms}")
self.assertTrue(filtered_rms < original_rms)
close_data(data)

Expand Down Expand Up @@ -452,7 +453,8 @@ def test_hwpss_relcal_continuous(self):
# chunk_view="scanning",
chunk_time=60 * u.second,
subtract_model=True,
fill_gaps=True,
# fill_gaps=True,
fill_gaps=False,
debug=debug,
)
hwpss_model.apply(data)
Expand All @@ -475,6 +477,6 @@ def test_hwpss_relcal_continuous(self):
good = ob.detdata[defaults.det_flags][det] == 0
original_rms = np.std(ob.detdata["original"][det][good])
filtered_rms = np.std(ob.detdata[defaults.det_data][det][good])
# print(f"{ob.name}[{det}]: {filtered_rms} <? {original_rms}")
print(f"{ob.name}[{det}]: {filtered_rms} <? {original_rms}")
self.assertTrue(filtered_rms < original_rms)
close_data(data)

0 comments on commit f64d5e8

Please sign in to comment.