Skip to content

Commit

Permalink
remove post-update of the wcsinfo block
Browse files Browse the repository at this point in the history
  • Loading branch information
stscieisenhamer committed Oct 31, 2024
1 parent 7c45283 commit 3f478dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion romanisim/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,11 @@ def simulate(metadata, objlist,
counts, simcatobj = simulate_counts(
image_mod.meta, objlist, rng=rng, usecrds=usecrds, darkrate=darkrate,
webbpsf=webbpsf, flat=flat, psf_keywords=psf_keywords)
util.update_aperture_and_wcsinfo_metadata(image_mod.meta, counts.wcs)

# The following seems to be superfluous. Without, `assign_wcs` creates
# an exact wcs as romanisim
# util.update_aperture_and_wcsinfo_metadata(image_mod.meta, counts.wcs)

if level == 0:
im = dict(data=counts.array, meta=dict(image_mod.meta.items()))
else:
Expand Down

0 comments on commit 3f478dc

Please sign in to comment.