Skip to content

Commit

Permalink
More consistent used of the observation reference
Browse files Browse the repository at this point in the history
  • Loading branch information
keskitalo committed Sep 24, 2024
1 parent 075a1aa commit e9ffd52
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/toast/ops/interpolate_healpix.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,18 @@ def _exec(self, data, detectors=None, **kwargs):
ob.detdata[key][:] = 0

ob_data = data.select(obs_name=ob.name)
current_ob = ob_data.obs[0]
for idet, det in enumerate(dets):
self.detector_pointing.apply(ob_data, detectors=[det])
self.stokes_weights.apply(ob_data, detectors=[det])
det_quat = ob_data.obs[0].detdata[self.detector_pointing.quats][det]
det_quat = current_ob.detdata[self.detector_pointing.quats][det]
# Convert pointing quaternion into angles
theta, phi, _ = qa.to_iso_angles(det_quat)
# Get pointing weights
weights = ob.detdata[self.stokes_weights.weights][det]
weights = current_ob.detdata[self.stokes_weights.weights][det]

# Interpolate the provided maps and accumulate the
# appropriate timestreams
# appropriate timestreams in the original observation
for map_name, map_value in self.maps.items():
if len(self.det_data_keys) == 1:
det_data_key = self.det_data_keys[0]
Expand Down

0 comments on commit e9ffd52

Please sign in to comment.