From 8a36de25b1343c21d2cfd695e51ffd912adc77ab Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Thu, 15 Feb 2024 11:37:35 -0700 Subject: [PATCH] Add day_obs_offset class property Default to 0 seconds offset. --- python/lsst/pipe/base/_instrument.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/lsst/pipe/base/_instrument.py b/python/lsst/pipe/base/_instrument.py index ff969b904..34cd10c33 100644 --- a/python/lsst/pipe/base/_instrument.py +++ b/python/lsst/pipe/base/_instrument.py @@ -81,6 +81,10 @@ class Instrument(metaclass=ABCMeta): of the dataset type name, a tuple of dimension names, and the storage class name. If `None` the ingest system will use its default definition.""" + day_obs_offset: 0 + """Offset (in seconds) to apply when converting a ``day_obs`` value + to a timespan (`int`).""" + def __init__(self, collection_prefix: str | None = None): if collection_prefix is None: collection_prefix = self.getName()