From 5e643f001bc6e0b72bc5557e09ef49c26c11738e Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Mon, 31 Jul 2023 17:48:15 -0700 Subject: [PATCH] Enable skip_datastore for remove collections command This command explicitly does not remove RUN collections so only affects registry. --- python/lsst/daf/butler/script/removeCollections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/lsst/daf/butler/script/removeCollections.py b/python/lsst/daf/butler/script/removeCollections.py index 5358c26f3e..81fec8a81f 100644 --- a/python/lsst/daf/butler/script/removeCollections.py +++ b/python/lsst/daf/butler/script/removeCollections.py @@ -76,7 +76,7 @@ def _getCollectionInfo( collectionInfo : `CollectionInfo` Contains tables with run and non-run collection info. """ - butler = Butler(repo) + butler = Butler(repo, without_datastore=True) try: names = sorted( butler.registry.queryCollections( @@ -129,7 +129,7 @@ def removeCollections( def doRemove(collections: Table) -> None: """Perform the prune collection step.""" - butler = Butler(repo, writeable=True) + butler = Butler(repo, writeable=True, without_datastore=True) for name in collections["Collection"]: butler.registry.removeCollection(name)