Skip to content

Commit

Permalink
simple fix to missing flags (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
keskitalo authored Sep 8, 2022
1 parent 51f896b commit e6c588f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/toast/ops/pixels_healpix.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,10 @@ def _exec(self, data, detectors=None, use_accel=False, **kwargs):
ob.detdata.accel_create(self.pixels)

# Get the flags if needed. Use the same flags as
# detector pointing.
flags = None
# detector pointing. Use empty array in absence of flags
flags = np.array([], dtype=np.uint8)
if self.detector_pointing.shared_flags is not None:
flags = np.array(ob.shared[self.detector_pointing.shared_flags])
# n_good = np.sum(flags == 0)
# n_bad = np.sum(flags != 0)
# print(f"Flags using mask {self.detector_pointing.shared_flag_mask}, {n_good} good, {n_bad} bad")

if self.use_python:
self._py_pixels_healpix(
Expand Down

0 comments on commit e6c588f

Please sign in to comment.