Skip to content

Commit

Permalink
More units
Browse files Browse the repository at this point in the history
  • Loading branch information
teutoburg committed May 22, 2024
1 parent cd7cf71 commit 85fa9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scopesim/source/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ def plot(self, axes, color) -> None:
axes.plot(*outline.T, color, label=self.name)

Check warning on line 774 in scopesim/source/source.py

View check run for this annotation

Codecov / codecov/patch

scopesim/source/source.py#L771-L774

Added lines #L771 - L774 were not covered by tests

def shift(self, dx, dy) -> None:
dx = quantify(dx, u.arcsec).to(self.header["CUNIT1"])
dy = quantify(dy, u.arcsec).to(self.header["CUNIT2"])
dx = dx << u.arcsec << self.wcs.wcs.cunit[0]
dy = dy << u.arcsec << self.wcs.wcs.cunit[1]
self.header["CRVAL1"] += dx.value
self.header["CRVAL2"] += dy.value

Check warning on line 780 in scopesim/source/source.py

View check run for this annotation

Codecov / codecov/patch

scopesim/source/source.py#L777-L780

Added lines #L777 - L780 were not covered by tests

Expand Down

0 comments on commit 85fa9ca

Please sign in to comment.