Skip to content

Commit

Permalink
Merge pull request #443 from lsst/tickets/DM-38779
Browse files Browse the repository at this point in the history
DM-38779: Use resolved dataset ref for ingest of stray light data
  • Loading branch information
timj committed May 4, 2023
2 parents 19061a7 + 3b2907f commit ecffb8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/lsst/obs/subaru/_instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,12 @@ def ingestStrayLightData(self, butler, directory, *, transfer=None, collection=N
continue
ref = DatasetRef(datasetType, dataId={"instrument": self.getName(),
"detector": detector.getId(),
"physical_filter": "HSC-Y"})
"physical_filter": "HSC-Y"},
run=run)
datasets.append(FileDataset(refs=ref, path=path, formatter=SubaruStrayLightDataFormatter))
butler.registry.registerDatasetType(datasetType)
with butler.transaction():
butler.ingest(*datasets, transfer=transfer, run=run)
butler.ingest(*datasets, transfer=transfer)
refs = []
for dataset in datasets:
refs.extend(dataset.refs)
Expand Down

0 comments on commit ecffb8d

Please sign in to comment.