Skip to content

Commit

Permalink
Add day_obs_offset class property
Browse files Browse the repository at this point in the history
Default to 0 seconds offset.
  • Loading branch information
timj committed Feb 15, 2024
1 parent 01084ba commit 8a36de2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lsst/pipe/base/_instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8a36de2

Please sign in to comment.