Skip to content

Commit e6c588f

Browse files
authored
simple fix to missing flags (#586)
1 parent 51f896b commit e6c588f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/toast/ops/pixels_healpix.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,10 @@ def _exec(self, data, detectors=None, use_accel=False, **kwargs):
258258
ob.detdata.accel_create(self.pixels)
259259

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

269266
if self.use_python:
270267
self._py_pixels_healpix(

0 commit comments

Comments
 (0)