8000 JP-2303: Allow user input for resample weight_type param by hbushouse · Pull Request #6406 · spacetelescope/jwst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JP-2303: Allow user input for resample weight_type param #6406

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 2 commits into from
Oct 21, 2021

Conversation

hbushouse
Copy link
Collaborator
@hbushouse hbushouse commented Oct 21, 2021

Closes #6401
Resolves JP-2303

Description

This PR allows for user override of the resample step weight_type parameter. The param is defined to allow selections of ivm and exptime (with ivm as the default), but the ivm value was hardwired in calls to lower-level functions, hence ignoring the choice of exptime when selected. This change allows for the selection specified when the step is called to be passed down. It also warns the user that the choice of exptime will result in incorrect error propagation.

Checklist

  • Tests
  • Documentation
  • Change log
  • Milestone
  • Label(s)

@hbushouse hbushouse added this to the Build 7.9 milestone Oct 21, 2021
@hbushouse hbushouse requested a review from jdavies-st October 21, 2021 14:48
Copy link
Collaborator
@jdavies-st jdavies-st 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. Can that WARNING be in flashing red letters? 😅

@hbushouse
< 8000 path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"> Copy link
Collaborator Author

Looks good. Can that WARNING be in flashing red letters? 😅

If you know of any appropriate escape sequence for python logging to do that, I'm happy to implement! Perhaps along with an audio snippet of "Danger Will Robinson!"

@hbushouse hbushouse changed the title JP-2303: All user input for resample weight_type param JP-2303: Allow user input for resample weight_type param Oct 21, 2021
@hbushouse
Copy link
Collaborator Author

CI failures appear to be unrelated (tweakreg unit tests). Merging.

@hbushouse hbushouse merged commit 39f72fc into spacetelescope:master Oct 21, 2021
@hbushouse hbushouse deleted the jp2303 branch October 21, 2021 15:29
nden pushed a commit to nden/jwst that referenced this pull request Nov 2, 2021
…ope#6406)

* JP-2303: All user input for resample weight_type param

* Fix unit test and add change log entry
nden pushed a commit to nden/jwst that referenced this pull request Nov 2, 2021
…ope#6406)

* JP-2303: All user input for resample weight_type param

* Fix unit test and add change log entry
loicalbert pushed a commit to talensgj/jwst that referenced this pull request Nov 5, 2021
…ope#6406)

* JP-2303: All user input for resample weight_type param

* Fix unit test and add change log entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

resample step doesn't handle user-supplied weight_type value
2 participants
0