Skip to content

Commit

Permalink
Add the provenance parameter to Datastore put
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jan 31, 2025
1 parent 1879d7d commit 3c64e81
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from . import SasquatchDispatcher

if TYPE_CHECKING:
from lsst.daf.butler import Config, DatasetType, LookupKey
from lsst.daf.butler import Config, DatasetProvenance, DatasetType, LookupKey
from lsst.daf.butler.registry.interfaces import DatasetIdRef, DatastoreRegistryBridgeManager


Expand Down Expand Up @@ -151,7 +151,9 @@ def clone(self, bridgeManager: DatastoreRegistryBridgeManager) -> SasquatchDatas
def bridge(self) -> DatastoreRegistryBridge:
return self._bridge

def put(self, inMemoryDataset: Any, ref: DatasetRef) -> None:
def put(
self, inMemoryDataset: Any, ref: DatasetRef, *, provenance: DatasetProvenance | None = None
) -> None:
if self.constraints.isAcceptable(ref):
self._dispatcher.dispatchRef(inMemoryDataset, ref, extraFields=self.extra_fields)
else:
Expand Down

0 comments on commit 3c64e81

Please sign in to comment.