-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Bug]: pr-›orig_gdq is NULL. #219
Comments
@JarronL @mperrin Pretty sure this is something to do with the C implementation of the OLS fitting method. Obviously we could make OLS the default rather than OLS_C, but it seems a shame to lose out on the faster fitting for longer ramp data. Any thoughts on what specifically we're doing with spaceKLIP that's affecting things? |
@ktcrotts Could you let us know what version of the jwst pipeline you were running with? |
I can confirm this works fine for me (no error) on pipeline 1.15.1, with no special handling or parameter set for the ramp fit algorithm. i.e. using the default which is OLS_C now. |
I just looked and it says it's version 2.1.1. |
Hmm, that number doesn’t make sense. We would expect |
Oh sorry for the confusion I was looking at the version of SpaceKLIP. The version for jwst is 1.16.0. |
OK, thanks. That's very helpful: I just confirmed that this works on 1.15.1 but errors on 1.16.0. In the same conda environment so the only differences are the |
I'll followup with the pipeline developers to try to figure out what's up and how to fix it. |
OK, this turns out to be a known issue (see spacetelescope/jwst#8842 and spacetelescope/jwst#8710) with the specific combination of: the OLS_C algorithm, multiprocessing, and possibly also the saveopt=True option. There's a bug fix in this PR spacetelescope/stcal#289 which will go into the next version of stcal. In the short term the workaround is to avoid multiprocessing with the OLS_C implementation. Specifically in the list of parameters for coron1pipeline, replace |
Oh and FYI @kglidic, see my comment above. We probably want to, at least temporarily, put a note in the tutorial notebooks about needing to change this parameter with 1.16.0. Note, it's not enough to leave out the |
I addressed this in a Slack message in the coronagraphy-pipeline channel a couple weeks ago. Set I suggest we submit a PR with this as the default in SpaceKLIP. e.g.,: # Number of processor cores to use during ramp fitting process
# 'none', 'quarter', 'half', or 'all'
pipeline.ramp_fit.maximum_cores = kwargs.get('maximum_cores', 'none') Replace this line: |
@ktcrotts never mind, Jarron's too fast 😆 |
Oops! |
Check Existing Issues
Instrument or Category
NIRCam Stage 1/2 Pipeline
Description
When running coron1pipeline.run_obs(), the error "pr-›orig_gdq is NULL." occurs unless "'algorithm': 'OLS'" is added under 'ramp_fit'.
Error traceback output
No response
What operating system are you using?
Mac OS 14.7 Sonoma
What version of Python are you running?
Python 3.11
What Python packages do you have installed?
No response
Additional context or information
No response
The text was updated successfully, but these errors were encountered: