Skip to content
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

DRP stopped at wavelength calibration in interactive mode #142

Open
syeh19 opened this issue Mar 10, 2020 · 2 comments
Open

DRP stopped at wavelength calibration in interactive mode #142

syeh19 opened this issue Mar 10, 2020 · 2 comments

Comments

@syeh19
Copy link

syeh19 commented Mar 10, 2020

I got past the interactive wavelength calibration with removing one point in the fit, then pressed q to quit. But the reduction did not proceed beyond wavelength calibration, I only got wave_stack_[band]_[range].fits, combflat_2d_[band].fits, and pixelflat_2d_[band].fits

When I turned off the interactive mode in wavelength calibration and DRP ran successfully. I got 1d and 2d fits files of every slit, background subtracted and rectified.

The errors are listed below. My data are J band MOS data, my DRP runs on Mac OS X 10.13.6.

qq2020-03-09 17:46:11,817 - Wavelength. fit_lambda_helper - INFO: S01] TOOK: 252 s
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/anaconda3/envs/mospy_2018_macos/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/anaconda3/envs/mospy_2018_macos/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/anaconda3/envs/mospy_2018_macos/lib/python3.6/site-packages/MOSFIRE-1.0.dev0-py3.6.egg/MOSFIRE/Wavelength.py", line 392, in fit_lambda_helper
sol_1d = center_solutions[slitidx]["sol_1d"]
TypeError: 'int' object is not subscriptable
"""

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 "/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 "/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 "/anaconda3/envs/mospy_2018_macos/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
TypeError: 'int' object is not subscriptable

@KeckDRP
Copy link
Member

KeckDRP commented Mar 10, 2020 via email

@syeh19
Copy link
Author

syeh19 commented Mar 10, 2020

Thanks for pointing out the user error. Indeed it worked when I proceeded with "n" to go through the fit in all the slits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants