Skip to content

Commit

Permalink
Turns out having inverses of inverses breaks the world
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarDrew committed Mar 25, 2024
1 parent dfdd738 commit c101962
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions dkist/wcs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,52 +340,15 @@ class InverseVaryingCelestialTransform(BaseVaryingCelestialTransform):
n_inputs = 3
_is_inverse = True

@property
def inverse(self):
vct = VaryingCelestialTransform(
crpix=self.crpix,
cdelt=self.cdelt,
lon_pole=self.lon_pole,
pc_table=self.pc_table,
crval_table=self.crval_table,
projection=self.projection,
)
return vct


class InverseVaryingCelestialTransform2D(BaseVaryingCelestialTransform):
n_inputs = 4
_is_inverse = True

@property
def inverse(self):
vct = VaryingCelestialTransform2D(
crpix=self.crpix,
cdelt=self.cdelt,
lon_pole=self.lon_pole,
pc_table=self.pc_table,
crval_table=self.crval_table,
projection=self.projection,
)
return vct


class InverseVaryingCelestialTransform3D(BaseVaryingCelestialTransform):
n_inputs = 5
_is_inverse = True

@property
def inverse(self):
vct = VaryingCelestialTransform3D(
crpix=self.crpix,
cdelt=self.cdelt,
lon_pole=self.lon_pole,
pc_table=self.pc_table,
crval_table=self.crval_table,
projection=self.projection,
)
return vct


class CoupledCompoundModel(CompoundModel):
"""
Expand Down

0 comments on commit c101962

Please sign in to comment.