Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/115.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Per the adopted convention in SFFT, all input and output arrays should be transposed. The output intermediate file arrays were not transposed when saving to disk. Now they are.
16 changes: 8 additions & 8 deletions phrosty/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,38 +730,38 @@ def log_fits_write_error( savepath, x ):

write_filepaths = {'aligned': [['img',
templ_image.image.name,
cp.asnumpy(sfftifier.PixA_resamp_object_GPU),
cp.asnumpy(sfftifier.PixA_resamp_object_GPU.T),
sfftifier.hdr_target],
['var',
templ_image.image.name,
cp.asnumpy(sfftifier.PixA_resamp_objectVar_GPU),
cp.asnumpy(sfftifier.PixA_resamp_objectVar_GPU.T),
sfftifier.hdr_target],
['psf',
templ_image.image.name,
cp.asnumpy(sfftifier.PSF_resamp_object_GPU),
cp.asnumpy(sfftifier.PSF_resamp_object_GPU.T),
sfftifier.hdr_target],
['detmask',
sci_image.image.name,
cp.asnumpy(sfftifier.PixA_resamp_object_DMASK_GPU),
cp.asnumpy(sfftifier.PixA_resamp_object_DMASK_GPU.T),
sfftifier.hdr_target]
],
'convolved': [['img',
f'{conv_sci_name[:-5]}_{conv_templ_name}',
cp.asnumpy(sfftifier.PixA_Ctarget_GPU),
cp.asnumpy(sfftifier.PixA_Ctarget_GPU.T),
sfftifier.hdr_target],
['img',
f'{conv_templ_name[:-5]}_{conv_sci_name}',
cp.asnumpy(sfftifier.PixA_Cresamp_object_GPU),
cp.asnumpy(sfftifier.PixA_Cresamp_object_GPU.T),
sfftifier.hdr_target]
],
'diff': [['img',
f'{conv_sci_name[:-5]}_{conv_templ_name}',
cp.asnumpy(sfftifier.PixA_DIFF_GPU),
cp.asnumpy(sfftifier.PixA_DIFF_GPU.T),
sfftifier.hdr_target]
],
'decorr': [['kernel',
sci_image.image.name,
cp.asnumpy(sfftifier.FKDECO_GPU),
cp.asnumpy(sfftifier.FKDECO_GPU.T),
sfftifier.hdr_target]
]
}
Expand Down