diff --git a/CHANGES.rst b/CHANGES.rst index 4e4aeab..39cb568 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,7 @@ 1.3.1 (Unreleased) ================== +- Move from .write to .save on images for new JWST version - Fix occasional all-NaN issue in ``single_tile_destripe`` - Fix backgrounds being wrongly moved in ``lv1_step`` - Moved ``astrometric_align`` to a combined step, to avoid list ordering issues diff --git a/pjpipe/astrometric_align/astrometric_align_step.py b/pjpipe/astrometric_align/astrometric_align_step.py index 3ab4fe1..49e17cf 100644 --- a/pjpipe/astrometric_align/astrometric_align_step.py +++ b/pjpipe/astrometric_align/astrometric_align_step.py @@ -516,7 +516,7 @@ def align_to_aligned_image( # Update WCS info updated_im = lv3_update_fits_wcsinfo(im=target_im, hdr=target_hdr) - updated_im.write(aligned_file) + updated_im.save(aligned_file) # Also apply this to each individual crf file crf_files = glob.glob( @@ -776,7 +776,7 @@ def tweakreg_align( hdr=target_hdr, ) - target_im.write(aligned_file) + target_im.save(aligned_file) # Also apply this to each individual crf file crf_files = glob.glob(