remove all lazy properties
@@ -223,13 +223,13 @@ class DataStoreObservation(object):
"""Load background object."""
return self.load(hdu_type="bkg")
- @lazyproperty
+ @property
def obs_info(self):
"""Observation information (`~collections.OrderedDict`)."""
row = self.data_store.obs_table.select_obs_id(obs_id=self.obs_id)[0]
return table_row_to_dict(row)
- @lazyproperty
+ @property
def tstart(self):
"""Observation start time (`~astropy.time.Time`)."""
met_ref = time_ref_from_dict(self.data_store.obs_table.meta)
@@ -237,7 +237,7 @@ class DataStoreObservation(object):
time = met_ref + met
return time
- @lazyproperty
+ @property
def tstop(self):
"""Observation stop time (`~astropy.time.Time`)."""
met_ref = time_ref_from_dict(self.data_store.obs_table.meta)
@@ -264,7 +264,7 @@ class DataStoreObservation(object):
"""
return self.gti.time_sum * (1 - self.observation_dead_time_fraction)
- @lazyproperty
+ @property
def observation_dead_time_fraction(self):
"""Dead-time fraction (float).
@@ -280,35 +280,35 @@ class DataStoreObservation(object):
"""
return 1 - self.obs_info["DEADC"]
- @lazyproperty
+ @property
def pointing_radec(self):
"""Pointing RA / DEC sky coordinates (`~astropy.coordinates.SkyCoord`)."""
lon, lat = self.obs_info["RA_PNT"], self.obs_info["DEC_PNT"]
return SkyCoord(lon, lat, unit="deg", frame="icrs")
- @lazyproperty
+ @property
def pointing_altaz(self):
"""Pointing ALT / AZ sky coordinates (`~astropy.coordinates.SkyCoord`)."""
alt, az = self.obs_info["ALT_PNT"], self.obs_info["AZ_PNT"]
return SkyCoord(az, alt, unit="deg", frame="altaz")
- @lazyproperty
+ @property
def pointing_zen(self):
"""Pointing zenith angle sky (`~astropy.units.Quantity`)."""
return Quantity(self.obs_info["ZEN_PNT"], unit="deg")
- @lazyproperty
+ @property
def target_radec(self):
"""Target RA / DEC sky coordinates (`~astropy.coordinates.SkyCoord`)."""
lon, lat = self.obs_info["RA_OBJ"], self.obs_info["DEC_OBJ"]
return SkyCoord(lon, lat, unit="deg", frame="icrs")
- @lazyproperty
+ @property
def observatory_earth_location(self):
"""Observatory location (`~astropy.coordinates.EarthLocation`)."""
return earth_location_from_dict(self.obs_info)
- @lazyproperty
+ @property
def muoneff(self):
"""Observation muon efficiency."""
return self.obs_info["MUONEFF"]
