From 226791de3c8bbecd63f038f204b4af32d1cbb2e5 Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Fri, 21 Jul 2023 15:02:13 -0700 Subject: [PATCH] Use .values when key is not needed in loop --- python/lsst/daf/butler/transfers/_yaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lsst/daf/butler/transfers/_yaml.py b/python/lsst/daf/butler/transfers/_yaml.py index 3e36c72be7..46e1950ab1 100644 --- a/python/lsst/daf/butler/transfers/_yaml.py +++ b/python/lsst/daf/butler/transfers/_yaml.py @@ -438,7 +438,7 @@ def load( self.registry.insertDimensionData(element, *dimensionRecords, skip_existing=True) # FileDatasets to ingest into the datastore (in bulk): fileDatasets = [] - for (datasetTypeName, run), records in self.datasets.items(): + for records in self.datasets.values(): # Make a big flattened list of all data IDs and dataset_ids, while # remembering slices that associate them with the FileDataset # instances they came from.