Skip to content

Commit

Permalink
fix: wrong order
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Jul 22, 2024
1 parent 75925c3 commit 3e6aa25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ipyaladin/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,12 @@ def fov(self) -> Angle:
def fov(self, fov: Union[float, Angle]) -> None:
if isinstance(fov, Angle):
fov = fov.deg
self._fov = fov
if np.isclose(fov, self._fov):
return
self._fov = fov
self.send({"event_name": "change_fov", "fov": fov})
self._fov_xy = {}
self._wcs = {}
self.send({"event_name": "change_fov", "fov": fov})

@property
def target(self) -> SkyCoord:
Expand Down

0 comments on commit 3e6aa25

Please sign in to comment.