-
Notifications
You must be signed in to change notification settings - Fork 169
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
Move common resample code to stcal #8986
Open
mcara
wants to merge
21
commits into
spacetelescope:main
Choose a base branch
from
mcara:new-resample-cls2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,242
−1,252
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
02441fe
Move common resample code to stcal
mcara 9cc6d26
fix style
mcara 2cdb4f9
add temporary dependency on stcal my fork
mcara e145265
remove available memory check
mcara 9ea4722
add changelog
mcara 72b7822
update spec code to use new classes
mcara 08a3183
fix test failures and pep8
mcara baa3905
fix diff in s_region for spec
mcara f592dc4
Address reviewer comments
mcara 1edd94b
Address reviewer comments - 2
mcara 8f9d384
function name change
mcara 81acd54
finish changes to parameter name: wht_type->weight_type
mcara 33b3e50
Address reviewer comments
mcara 91382be
Deprecate build_driz_weight -> stcal; move load_custom_wcs -> utils
mcara bcf2053
remove drizzle as dependency
mcara 86af1a9
Remove reproject and reformat deprecation code
mcara 57d31f5
Fix deprecation warnings and docstrings. Add drizzle dependency for d…
mcara 91f89dd
add comment to pyproject
mcara 48c2ac3
Address reviewers comments
mcara ee3657c
Address reviewers comments
mcara 727ec4b
clarify finalized; add locked flag
mcara File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Moved common resample code to ``stcal`` (see https://github.com/spacetelescope/stcal/pull/320). Adjusted code in ``jwst.resample`` to depend on the common code from ``stcal.resample``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.. resample_: | ||
Python Interface to Drizzle: ResampleData() | ||
=========================================== | ||
Python Interface to Drizzle: ResampleImage() | ||
============================================ | ||
|
||
.. automodapi:: jwst.resample.resample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.. resample_spec_: | ||
Python Interface to Drizzle: ResampleSpecData() | ||
=============================================== | ||
Python Interface to Drizzle: ResampleSpec() | ||
=========================================== | ||
|
||
.. automodapi:: jwst.resample.resample_spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these ever set to non-default values in JWST? They are hard-coded here, and I don't think (correct me if I'm wrong) they are ever part of the
**kwargs
built byget_drizpars()
. If that's the case, I suggest removing them as arguments to JWST's version ofResampleImage
and hard-coding them at the location(s) whereResampleImage
calls stcal'sResample
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they are:
jwst/jwst/resample/resample_spec_step.py
Lines 142 to 156 in ba766f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha, thanks.