Skip to content

Commit

Permalink
residual image in twodspec is now properly displaced with or without …
Browse files Browse the repository at this point in the history
…rectification performed.
  • Loading branch information
cylammarco committed Jul 31, 2022
1 parent dc9afdb commit 7583b66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aspired/twodspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -3023,6 +3023,8 @@ def get_rectification(
self.img_rectified = ndimage.zoom(
img_tmp, zoom=1.0 / upsample_factor, order=spline_order
)
self.img_residual_rectified = copy.deepcopy(self.img_rectified)

if self.arc is not None:

self.arc_rectified = ndimage.zoom(
Expand Down Expand Up @@ -3141,6 +3143,7 @@ def apply_rectification(self):
if self.img_rectified is not None:

self.img = self.img_rectified
self.img_residual = self.img_residual_rectified
self.logger.info("Image rectification is applied")

else:
Expand Down

0 comments on commit 7583b66

Please sign in to comment.