Skip to content

Commit

Permalink
Use fact that DatasetRef can now be constructed with run but no ID
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Apr 17, 2023
1 parent fe797f6 commit 08c3e56
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_pipelineTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from lsst.daf.butler import (
DataCoordinate,
DatasetIdFactory,
DatasetIdGenEnum,
DatasetRef,
DatasetType,
DimensionUniverse,
Expand Down Expand Up @@ -127,9 +126,7 @@ def _makeDSRefVisit(
)
if resolve:
run = "test"
dataset_id = self.datasetIdFactory.makeDatasetId(run, dstype, dataId, DatasetIdGenEnum.UNIQUE)

ref = DatasetRef(datasetType=dstype, dataId=dataId, run=run, id=dataset_id)
ref = DatasetRef(datasetType=dstype, dataId=dataId, run=run)
else:
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=UnresolvedRefWarning)
Expand Down

0 comments on commit 08c3e56

Please sign in to comment.