Skip to content

Commit

Permalink
Fix new unit test failures (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
keskitalo authored Nov 17, 2022
1 parent 593fb9f commit 44d9f84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/toast/ops/conviqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def _get_all_detectors(self, data, detectors):
my_dets.add(det)
# Make sure detector data output exists
exists = obs.detdata.ensure(
self.det_data, detectors=detectors, units=self.det_data_units
self.det_data, detectors=detectors, create_units=self.det_data_units
)
all_dets = self.comm.gather(my_dets, root=0)
if self.comm.rank == 0:
Expand Down Expand Up @@ -568,7 +568,7 @@ def save(self, data, det, convolved_data, verbose):
timer = Timer()
timer.start()
offset = 0
scale = unit_conversion(u.K, self.units)
scale = unit_conversion(u.K, self.det_data_units)
for obs in data.obs:
if det not in obs.local_detectors:
continue
Expand Down
3 changes: 2 additions & 1 deletion src/toast/tests/ops_sim_tod_conviqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,4 +803,5 @@ def test_sim_hwp(self):

np.testing.assert_almost_equal(cl_out_wo_hwp, cl_out_w_hwp, decimal=2)

close_data(data)
close_data(data_w_hwp)
close_data(data_wo_hwp)

0 comments on commit 44d9f84

Please sign in to comment.