Skip to content

Commit

Permalink
Remove unnecessary list from call
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Apr 26, 2024
1 parent 677a554 commit ac6c506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/obs/base/_read_curated_calibs.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def read_all(
if len(calib_types) != 1: # set.add(None) has length 1 so None is OK here.
raise ValueError(f"Error mixing calib types: {calib_types}")

no_data = all([v == {} for v in calibration_data.values()])
no_data = all(v == {} for v in calibration_data.values())
if no_data:
raise RuntimeError("No data to ingest")

Expand Down

0 comments on commit ac6c506

Please sign in to comment.