Skip to content

Commit

Permalink
Use resolved dataset ref for ingest of stray light data
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Apr 24, 2023
1 parent f06e3a9 commit e8cb8b6
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 e8cb8b6

Please sign in to comment.