Skip to content

Commit

Permalink
Stop using deprecated property butler.collections
Browse files Browse the repository at this point in the history
This has been superseded by 'butler.collections.defaults'.
  • Loading branch information
dhirving committed Oct 12, 2024
1 parent c8ee65f commit f436206
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/lsst/pipe/base/quantum_graph_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def __init__(
self._pipeline_graph = pipeline_graph
self.butler = butler
if input_collections is None:
input_collections = butler.collections
input_collections = butler.collections.defaults

Check warning on line 176 in python/lsst/pipe/base/quantum_graph_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/quantum_graph_builder.py#L176

Added line #L176 was not covered by tests
if not input_collections:
raise ValueError("No input collections provided.")
self.input_collections = input_collections
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/pipe/base/tests/simpleQGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def makeSimpleQGraph(
"Instantiating QuantumGraphBuilder, "
"skip_existing_in=%s, input_collections=%r, output_run=%r, where=%r, bind=%s.",
skipExistingIn,
butler.collections,
butler.collections.defaults,
run,
userQuery,
bind,
Expand All @@ -500,7 +500,7 @@ def makeSimpleQGraph(
pipeline_graph,
butler,
skip_existing_in=skipExistingIn if skipExistingIn is not None else [],
input_collections=butler.collections if butler.collections is not None else [run],
input_collections=butler.collections.defaults if butler.collections.defaults is not None else [run],
output_run=run,
where=userQuery,
bind=bind,
Expand Down

0 comments on commit f436206

Please sign in to comment.