I am using DRP latest version (parent: 374:cf601433f89e tip) to reduce spectra with ABA'B' dither pattern. The DRP is working fine with AB pattern, but once I tried it with ABA'B' pattern, in the last step of Rectifying it crashed. The error is
Traceback (most recent call last):
File "Driver.py", line 39, in <module>
waveops)
File "/Users/ireneshivaei/mosfire/mosdrp/MOSFIRE/Rectify.py", line 128, in handle_rectification
shifts = all_shifts[cntr]
IndexError: list index out of range
So, I traced back the error and figured out that when the counter (cntr) is 0 (line 128 in Rectify.py) it's working fine, but it when it adds 1 to it (line 129 in Rectify.py) it doesn't work and gives the error that the index out of range.
With AB pattern, like the test data, the counter is cntr=0, when it's handling plan A-B, and never comes back in the loop with cntr=1. But with ABA'B', after 'Handling plan A-B', it comes back to the loop with cntr = 1 to handle plan Ap-Bp. And this is when the code crashes.
To avoid this, I commented out line 129 ( cntr += 1). Now the DRP is working fine, and the output looks reasonable. The "cntr" variable is not used in any other place.
I thought I should discuss it with you, make sure the change is not affecting anything else. Or maybe I should change something else, instead of commenting out line 129.
Thanks for your help in advance.
--
You received this message because you are subscribed to the Google Groups "MOSFIRE Data Reduction PIpeline" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mosfire-drp...@googlegroups.com.
To post to this group, send email to mosfi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mosfire-drp/bc3e826c-2c20-4a06-a0a6-bacbb32a62f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[---] ireneshivaei% ~/mosfire/mospy Driver.py
:: eps_Offset_1.5.txt.fits
Position -1.5 shift: 0.00 as
:: eps_Offset_-1.2.txt.fits
Position 1.2 shift: 2.70 as
:: eps_Offset_1.2.txt.fits
Position -1.2 shift: 0.30 as
:: eps_Offset_-1.5.txt.fits
Position 1.5 shift: 3.00 as
Handling plan A-B
cntr-before= 0
cntr-after= 1
Handling edge: n23767
Handling edge: n21735
Handling edge: n20802
Handling edge: n21347
Handling edge: n21470
Handling edge: n23207
Handling edge: o19181
Handling edge: o18367
Handling edge: 32238
Handling edge: n20024
Handling edge: n20212
Handling edge: n19482
Handling edge: o17241
Handling edge: 31123
Handling edge: S28766
Handling edge: o16847
Handling edge: n19228
Handling plan Ap-Bp
cntr-before= 1
Traceback (most recent call last):
File "Driver.py", line 39, in <module>
waveops)
File "/Users/ireneshivaei/mosfire/mosdrp/MOSFIRE/Rectify.py", line 129, in handle_rectification
shifts = all_shifts[cntr]
IndexError: list index out of range
--
You received this message because you are subscribed to the Google Groups "MOSFIRE Data Reduction PIpeline" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mosfire-drp...@googlegroups.com.
To post to this group, send email to mosfi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mosfire-drp/bc3e826c-2c20-4a06-a0a6-bacbb32a62f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/mosfire-drp/747ac71d-8836-4995-9b20-183fc87c875a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.