From ab4e1794abb7069e30f01b46c07a782c39842d87 Mon Sep 17 00:00:00 2001 From: Reijo Keskitalo Date: Mon, 12 Sep 2022 13:41:55 -0700 Subject: [PATCH] Fix two harmless warnings (#587) --- src/toast/ops/sim_tod_atm.py | 2 +- src/toast/templates/offset.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/toast/ops/sim_tod_atm.py b/src/toast/ops/sim_tod_atm.py index df7fcfba2..0598afc62 100644 --- a/src/toast/ops/sim_tod_atm.py +++ b/src/toast/ops/sim_tod_atm.py @@ -320,7 +320,7 @@ def _exec(self, data, detectors=None, **kwargs): observe_atm = ObserveAtmosphere( times=self.times, det_data=self.det_data, - quats=self.detector_pointing.quats, + quats_azel=self.detector_pointing.quats, view=temporary_view, shared_flags=shared_flags, shared_flag_mask=shared_flag_mask, diff --git a/src/toast/templates/offset.py b/src/toast/templates/offset.py index be257ec89..1a7dee81b 100644 --- a/src/toast/templates/offset.py +++ b/src/toast/templates/offset.py @@ -207,7 +207,7 @@ def _initialize(self, new_data): # based on the noise weight of the detector and the number of flagged samples. # Boolean flags - self._amp_flags = np.zeros(self._n_local, dtype=np.bool) + self._amp_flags = np.zeros(self._n_local, dtype=bool) # Here we track the variance of the offsets based on the detector noise weights # and the number of unflagged / good samples per offset.