diff --git a/azely/location.py b/azely/location.py index 11aa9e1..f7127d1 100644 --- a/azely/location.py +++ b/azely/location.py @@ -38,12 +38,6 @@ class Location: tf: ClassVar = TimezoneFinder() """TimezoneFinder instance.""" - def __post_init__(self) -> None: - """Add or update units of location values.""" - self.longitude = str(Longitude(self.longitude, "deg")) - self.latitude = str(Latitude(self.latitude, "deg")) - self.altitude = str(Quantity(self.altitude, "m")) - @property def timezone(self) -> tzinfo: """Timezone of the location.""" diff --git a/azely/object.py b/azely/object.py index 0e17e6a..f7d1cb1 100644 --- a/azely/object.py +++ b/azely/object.py @@ -8,7 +8,7 @@ # dependencies -from astropy.coordinates import Longitude, Latitude, SkyCoord, get_body +from astropy.coordinates import SkyCoord, get_body from astropy.time import Time as ObsTime from astropy.utils.data import conf from .consts import AZELY_CACHE, FRAME, SOLAR_FRAME, SOLAR_OBJECTS, TIMEOUT @@ -31,12 +31,6 @@ class Object: frame: str """Equatorial coordinates of the object.""" - def __post_init__(self) -> None: - """Add or update units of object coordinates.""" - if not self.is_solar: - self.longitude = str(Longitude(self.longitude, "hr")) - self.latitude = str(Latitude(self.latitude, "deg")) - @property def is_solar(self) -> bool: """Whether it is a solar object."""