Skip to content

Commit

Permalink
Update astrocut/asdf_cutouts.py
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Graham <brettgraham@gmail.com>
  • Loading branch information
havok2063 and braingram committed Feb 5, 2024
1 parent 78fcfce commit 3ab1490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astrocut/asdf_cutouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _write_asdf(cutout: astropy.nddata.Cutout2D, gwcsobj: gwcs.wcs.WCS, outfile:
sliced_gwcs = _slice_gwcs(gwcsobj, cutout.slices_original)

# create the asdf tree
tree = {'roman': {'meta': {'wcs': sliced_gwcs, 'data': cutout.data}}}
tree = {'roman': {'meta': {'wcs': sliced_gwcs}, 'data': cutout.data}}
af = asdf.AsdfFile(tree)

# Write the data to a new file
Expand Down

0 comments on commit 3ab1490

Please sign in to comment.