Skip to content

Commit

Permalink
add/rename effTime quantities
Browse files Browse the repository at this point in the history
  • Loading branch information
kadrlica committed Jan 27, 2024
1 parent 10e59fd commit b1634c4
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions python/lsst/afw/image/_exposureSummaryStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,20 @@ class ExposureSummaryStats(Storable):
(pixels).
"""

effectiveTime: float = float('nan')
effTime: float = float('nan')
"""Effective exposure time calculated from psfSigma, skyBg, and
zeroPoint (seconds).
"""

effTimeScalePsfSigma: float = float('nan')
"""PSF scaling of the effective exposure time."""

effTimeScaleSkyBg: float = float('nan')
"""Sky background scaling of the effective exposure time."""

effTimeScaleZeroPoint: float = float('nan')
"""Zeropoint scaling of the effective exposure time."""

def __post_init__(self):
Storable.__init__(self)

Expand Down Expand Up @@ -291,11 +300,26 @@ def update_schema(cls, schema: Schema) -> None:
doc="Maximum distance of an unmasked pixel to its nearest model psf star (pixel).",
)
schema.addField(
"effectiveTime",
"effTime",
type="F",
doc="Effective exposure time calculated from psfSigma, skyBg, and "
"zeroPoint (seconds)."
)
schema.addField(
"effTimeScalePsfSigma",
type="F",
doc="PSF scaling of the effective exposure time."
)
schema.addField(
"effTimeScaleSkyBg",
type="F",
doc="Sky background scaling of the effective exposure time."
)
schema.addField(
"effTimeScaleZeroPoint",
type="F",
doc="Zeropoint scaling of the effective exposure time."
)

def update_record(self, record: BaseRecord) -> None:
"""Write summary-statistic columns into a record.
Expand Down

0 comments on commit b1634c4

Please sign in to comment.