Skip to content

Commit

Permalink
Fix two harmless warnings (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
keskitalo authored Sep 12, 2022
1 parent e6c588f commit ab4e179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/toast/ops/sim_tod_atm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/toast/templates/offset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ab4e179

Please sign in to comment.