Skip to content

Commit

Permalink
Use newer ref.replace API rather than overrideStorageClass
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Nov 5, 2024
1 parent 5221e53 commit 5f4f16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/pipe/base/graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ def get_refs(
def _update_ref(ref: DatasetRef) -> DatasetRef:
internal_dataset_type = dataset_types.get(ref.datasetType.name, ref.datasetType)
if internal_dataset_type.storageClass_name != ref.datasetType.storageClass_name:
ref = ref.overrideStorageClass(internal_dataset_type.storageClass_name)
ref = ref.replace(storage_class=internal_dataset_type.storageClass_name)

Check warning on line 1793 in python/lsst/pipe/base/graph/graph.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/graph/graph.py#L1793

Added line #L1793 was not covered by tests
return ref

# Convert output_refs to the data repository storage classes, too.
Expand Down

0 comments on commit 5f4f16d

Please sign in to comment.