-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in wavelength calibration #148
Comments
@itjung Can you send me a minimal data set to reduce the mask which is failing? Perhaps you can reply here with a download link for the data. Hopefully I'll be able to reproduce the problem here and find a solution. thanks, |
@joshwalawender Thank you so much for finding this! I am sharing the Google drive link for the zip file (https://drive.google.com/file/d/1MKE3bkkQ_ZB1AMMMVEj6fwHYHyqUDgCf/view?usp=sharing). This contains flat and arc images with a pair of science frames. I ran DRP with this minimal data set, which provided the same error message. So I think that you can use it for reproducing the problem. Thanks! |
@joshwalawender Hi, I'm a student working with Intae. This problem occurs when dealing with a standard star s1608009985819036288 and I believe I found out why. I solved it by brutally making the bottom smaller than the top from slitedge. Following is the least reproducible code, could you please check? Thank you in advance! :) Seonwoo Kim
|
Is there any news on this issue ? |
I am trying to reduce my MOSFIRE data, and I encountered an issue in a wavelength calibration step. I have four masks to reduce, and DRP crashes for one of them. The other three have been properly reduced. DRP stops after/during an interactive wavelength calibration, and the error message is added below. I tried to search for similar issues here, but I couldn't. Can anyone share an experience on the issue?
2021-05-14 00:21:48,159 - Wavelength. fit_outwards_refit - INFO: Computing 0 spectrum at 89
2021-05-14 00:22:01,837 - Wavelength. fit_lambda_helper - INFO: S12] TOOK: 214 s
2021-05-14 00:22:11,235 - Wavelength. fit_lambda_helper - INFO: S21] TOOK: 92 s
2021-05-14 00:22:13,825 - Wavelength. fit_lambda_helper - INFO: S18] TOOK: 99 s
2021-05-14 00:22:49,558 - Wavelength. fit_lambda_helper - INFO: S16] TOOK: 188 s
2021-05-14 00:23:29,749 - Wavelength. fit_lambda_helper - INFO: S19] TOOK: 174 s
2021-05-14 00:23:31,478 - Wavelength. fit_lambda_helper - INFO: S20] TOOK: 174 s
2021-05-14 00:23:34,324 - Wavelength. fit_lambda_helper - INFO: S23] TOOK: 169 s
2021-05-14 00:23:40,921 - Wavelength. fit_lambda_helper - INFO: S25] TOOK: 157 s
2021-05-14 00:23:41,475 - Wavelength. fit_lambda_helper - INFO: S22] TOOK: 178 s
2021-05-14 00:23:48,993 - Wavelength. fit_lambda_helper - INFO: S03] TOOK: 412 s
2021-05-14 00:23:52,509 - Wavelength. fit_lambda_helper - INFO: S26] TOOK: 124 s
2021-05-14 00:24:11,445 - Wavelength. fit_lambda_helper - INFO: S24] TOOK: 192 s
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/Users/ijung1/opt/anaconda3/envs/mospy_2018_macos/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/Users/ijung1/opt/anaconda3/envs/mospy_2018_macos/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/Users/ijung1/opt/anaconda3/envs/mospy_2018_macos/lib/python3.6/site-packages/MOSFIRE-1.0.dev0-py3.6.egg/MOSFIRE/Wavelength.py", line 410, in fit_lambda_helper
start, bottom, top, slitno)
File "/Users/ijung1/opt/anaconda3/envs/mospy_2018_macos/lib/python3.6/site-packages/MOSFIRE-1.0.dev0-py3.6.egg/MOSFIRE/Wavelength.py", line 2337, in fit_outwards_refit
params = sweep(positions)
File "/Users/ijung1/opt/anaconda3/envs/mospy_2018_macos/lib/python3.6/site-packages/MOSFIRE-1.0.dev0-py3.6.egg/MOSFIRE/Wavelength.py", line 2324, in sweep
return {'coeffs': cfits, 'delts': delt, 'lambdaRMS':
UnboundLocalError: local variable 'delt' referenced before assignment
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "Driver.py", line 36, in
Wavelength.fit_lambda(maskname, band, obsfiles, obsfiles,waveops)
File "/Users/ijung1/opt/anaconda3/envs/mospy_2018_macos/lib/python3.6/site-packages/MOSFIRE-1.0.dev0-py3.6.egg/MOSFIRE/Wavelength.py", line 365, in fit_lambda
solutions = p.map(fit_lambda_helper, list(range(len(bs.ssl))))
File "/Users/ijung1/opt/anaconda3/envs/mospy_2018_macos/lib/python3.6/multiprocessing/pool.py", line 266, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/Users/ijung1/opt/anaconda3/envs/mospy_2018_macos/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
UnboundLocalError: local variable 'delt' referenced before assignment
The text was updated successfully, but these errors were encountered: