Skip to content

Commit

Permalink
Adapt to daf_butler API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Nov 16, 2023
1 parent aa51a9f commit c529101
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/obs/lsst/_packer.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def __init__(
):
if config is None:
config = RubinDimensionPackerConfig()
fixed = data_id.subset(data_id.universe.extract(["instrument"]))
fixed = data_id.subset(data_id.universe.conform(["instrument"]))
if is_exposure is None and data_id is not None:
if "visit" in data_id.graph.names:
is_exposure = False
Expand All @@ -217,9 +217,9 @@ def __init__(
"'is_exposure' was not provided and 'data_id' has no visit or exposure value."
)
if is_exposure:
dimensions = fixed.universe.extract(["instrument", "exposure", "detector"])
dimensions = fixed.universe.conform(["instrument", "exposure", "detector"])
else:
dimensions = fixed.universe.extract(["instrument", "visit", "detector"])
dimensions = fixed.universe.conform(["instrument", "visit", "detector"])
super().__init__(fixed, dimensions)
self.config = config
self.is_exposure = is_exposure
Expand Down

0 comments on commit c529101

Please sign in to comment.