Skip to content

Commit e5ac957

Browse files
cppartsbmatthieu3
authored andcommitted
Revert "updating setters to have relevant doc strings"
This reverts commit 4fcedf1.
1 parent 7c10484 commit e5ac957

1 file changed

Lines changed: 10 additions & 20 deletions

File tree

src/ipyaladin/widget.py

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ def height(self) -> int:
293293

294294
@height.setter
295295
def height(self, height: int) -> None:
296-
"""Height can be set with integer representing number of pixels."""
297296
if np.isclose(self._height, height):
298297
return
299298
self._wcs = {}
@@ -309,6 +308,9 @@ def rotation(self) -> float:
309308
Positive angles rotates the view in the counter clockwise
310309
order (or towards the east).
311310
311+
It can be set with either a float number in degrees
312+
or an astropy.coordinates.Angle object.
313+
312314
Returns
313315
-------
314316
astropy.coordinates.Angle
@@ -320,12 +322,6 @@ def rotation(self) -> float:
320322

321323
@rotation.setter
322324
def rotation(self, rotation: Union[float, Angle]) -> None:
323-
"""
324-
Rotation can be set with view center to north pole angle in degrees.
325-
326-
Rotation can either a float number in degrees
327-
or an `~astropy.coordinates.Angle` object.
328-
"""
329325
if isinstance(rotation, Angle):
330326
rotation = rotation.deg
331327
if np.isclose(self._rotation, rotation):
@@ -387,6 +383,9 @@ def fov_xy(self) -> Tuple[Angle, Angle]:
387383
def fov(self) -> Angle:
388384
"""The field of view of the Aladin Lite widget along the horizontal axis.
389385
386+
It can be set with either a float number in degrees
387+
or an astropy.coordinates.Angle object.
388+
390389
Returns
391390
-------
392391
astropy.coordinates.Angle
@@ -401,12 +400,6 @@ def fov(self) -> Angle:
401400

402401
@fov.setter
403402
def fov(self, fov: Union[float, Angle]) -> None:
404-
"""
405-
FoV can be set with angle representing horizontal axis.
406-
407-
FoV can be set with either a float number in degrees
408-
or an `~astropy.coordinates.Angle` object.
409-
"""
410403
if isinstance(fov, Angle):
411404
fov = fov.deg
412405
if np.isclose(fov, self._fov):
@@ -420,6 +413,10 @@ def fov(self, fov: Union[float, Angle]) -> None:
420413
def target(self) -> Union[SkyCoord, Tuple[float, float]]:
421414
"""The target of the Aladin Lite widget.
422415
416+
The target can be provided as coordinates (either
417+
`~astropy.coordinates.SkyCoord` or (`~astropy.coordinates.Longitude`,
418+
`~astropy.coordinates.Latitude`)) or as a name (as a string).
419+
423420
The conversion from a name to coordinates does call different online services
424421
depending on the base layer of the widget:
425422
- for the sky: it uses CDS's
@@ -454,13 +451,6 @@ def target(self) -> Union[SkyCoord, Tuple[float, float]]:
454451

455452
@target.setter
456453
def target(self, target: Union[str, SkyCoord, Tuple[float, float]]) -> None:
457-
"""
458-
Target can be set using coordinates or name.
459-
460-
Target can be provided as coordinates (either
461-
`~astropy.coordinates.SkyCoord` or (`~astropy.coordinates.Longitude`,
462-
`~astropy.coordinates.Latitude`)) or as a name (as a string).
463-
"""
464454
if isinstance(target, Tuple):
465455
lon, lat = target[0].deg, target[1].deg
466456
elif isinstance(target, str): # If the target is a string, parse it

0 commit comments

Comments
 (0)