Skip to content

Commit

Permalink
Use .values when key is not needed in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jul 21, 2023
1 parent 7b60374 commit 226791d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/daf/butler/transfers/_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 226791d

Please sign in to comment.