Skip to content

Commit

Permalink
use .update instead of a for loop over .items()
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiang87 committed Oct 21, 2019
1 parent ec3344d commit 31d7c2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/desc/imsim/camera_readout.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,7 @@ def write_fits_file(self, outfile, overwrite=True, run_number=None,

# Set the imSim version and LSST Stack product versions and
# tags in the primary HDU.
version_keywords = get_version_keywords()
for key, value in version_keywords.items():
output[0].header[key] = value
output[0].header.update(get_version_keywords())
self.fits_atomic_write(output, outfile, overwrite=overwrite)

@staticmethod
Expand Down

0 comments on commit 31d7c2f

Please sign in to comment.