8000 JP-3605: Change default value for abs_separation in the tweakreg step by mcara · Pull Request #8445 · spacetelescope/jwst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JP-3605: Change default value for abs_separation in the tweakreg step #8445

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

Merged
merged 3 commits into from
May 2, 2024

Conversation

mcara
Copy link
Member
@mcara mcara commented Apr 26, 2024

Resolves JP-3605

Closes #8436

This PR addresses possible crash in absolute alignment step:

RuntimeError: Number of output coordinates exceeded allocation (100)

#6987 exposed some of the previously hard-coded parameters for the absolute alignment step. At that time these parameters have not been adjusted in such a way as to avoid multiple detections within the tolerance circle (#6987 (comment)). This is the reason for these crashes. This PR increases abs_separation to 1 arcsec.

Checklist for maintainers

  • added entry in CHANGES.rst within the relevant release section
  • updated or added relevant tests
  • updated relevant documentation
  • added relevant milestone
  • added relevant label(s)
  • ran regression tests, post a link to the Jenkins job below.
    How to run regression tests on a PR
  • Make sure the JIRA ticket is resolved properly

Copy link
codecov bot commented Apr 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.38%. Comparing base (6580914) to head (d1aae91).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8445   +/-   ##
=======================================
  Coverage   56.38%   56.38%           
=======================================
  Files         387      387           
  Lines       38716    38716           
=======================================
  Hits        21830    21830           
  Misses      16886    16886           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mcara mcara force-pushed the fix-abs-sep-tol-pars branch from 37fa745 to c88f38d Compare April 27, 2024 00:51
Copy link
Collaborator
@nden nden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
Fixes the failures reported in the ticket.

@nden nden merged commit a833633 into spacetelescope:master May 2, 2024
26 of 28 checks passed
@hbushouse hbushouse modified the milestones: Build 10.0.1, Build 11.0 May 2, 2024
@mcara
Copy link
Member Author
mcara commented May 8, 2024

I was thinking maybe we should add a comment about the need for separation to be at least 1.5 times larger than tolerance in the docs and even add a IF statement and raise an exception in the step is this condition is not satisfied in order to avoid reported errors when running the step with custom parameters.

@nden
Copy link
Collaborator
nden commented May 8, 2024

I agree we should add it to the general documentation and the parameter description. Another PR?

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

Successfully merging this pull request may close these issues.

single-member niriss image3 crashed with "Number of output coordinates exceeded allocation (100)"
3 participants
0