Skip to content

Commit

Permalink
Use Butler._datastore in test code to suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-slac committed Jul 13, 2023
1 parent 98dcaee commit 3517803
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -414,7 +414,7 @@ def makeSimpleQGraph(
query based on dataset existence, defaults to
`DatasetQueryConstraintVariant.ALL`.
makeDatastoreRecords : `bool`, optional
If `True` then add datstore records to generated quanta.
If `True` then add datastore records to generated quanta.
bind : `~collections.abc.Mapping`, optional
Mapping containing literal values that should be injected into the
``userQuery`` expression, keyed by the identifiers they replace.
Expand Down Expand Up @@ -446,7 +446,7 @@ def makeSimpleQGraph(
builder = GraphBuilder(
registry=butler.registry,
skipExistingIn=skipExistingIn,
datastore=butler.datastore if makeDatastoreRecords else None,
datastore=butler._datastore if makeDatastoreRecords else None,
)
if not run:
assert butler.run is not None, "Butler must have run defined"
Expand Down

0 comments on commit 3517803

Please sign in to comment.