Open nabeelre opened 1 year ago
Hi, I'm running into this error as well. I did some digging and it appears that the failure is happening at line 188 of solve_wcs.py
. This is in the apply_wcs_distortion
function and it's a bug with the input for curve_fit
:
curve_fit(ptv_fit,(xi,eta),dra,p0=p0)[0]
This is also the reason why the auto_WCS feature has been failing. I think it might have to do with curve_fit
no longer accepting the inputs in the format assumed. @KerryPaterson, looks like you had last contributed to this snippet of code (commit 538330a). Could you please take a look? I'm unable to parse the intent of this line to suggest a fix.
When the automatic WCS solution fails and one opts to manually redo WCS the pipeline crashes with the following traceback (I've included some previous output for context):
I'm reducing MMIRS data on an M1-based MacBook running macOS 12.6.1.