Skip to content

Commit

Permalink
fixup! Stop ignoring unrecognized kwargs in DimensionRecord.__init__.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Nov 17, 2023
1 parent c8766bb commit bd79a50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/lsst/daf/butler/dimensions/_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ def __init__(self, **kwargs: Any):
# Note that we remove from kwargs as we go, to make sure there's
# nothing left at the end.
object.__setattr__(self, name, kwargs.pop(name, None))
# Support 'datetime_begin' and 'datetime_end' instead of 'timespan' for
# backwards compatibility, but if one is provided both must be.
if self.definition.temporal is not None and self.timespan is None and "datetime_begin" in kwargs:
object.__setattr__(
self,
Expand Down

0 comments on commit bd79a50

Please sign in to comment.