-
Notifications
You must be signed in to change notification settings - Fork 180
JP-3943: Give source_catalog step same flexibility as tweakreg #9462
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9462 +/- ##
==========================================
+ Coverage 79.13% 79.15% +0.01%
==========================================
Files 368 367 -1
Lines 37222 37200 -22
==========================================
- Hits 29457 29444 -13
+ Misses 7765 7756 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Initial round of regtests here https://github.com/spacetelescope/RegressionTests/actions/runs/15003189900 prior to adding all the new parameters to source catalog.
The differences are expected to be the same after the next commits, which add a bunch of options but should not change the defaults. |
|
starting some new regtests https://github.com/spacetelescope/RegressionTests/actions/runs/16225055520 most recent rerun is after d63b233 The small differences in catalogs are expected due to the last two changes in the bulleted list in the top-level description. |
jwst/tweakreg/tweakreg_catalog.py
Outdated
| finder_args = list(inspect.signature(IRAFStarFinder).parameters) | ||
| finder_dict = {k: kwargs.pop(k) for k in dict(kwargs) if k in finder_args} | ||
|
|
||
| # oldestdeps still encounters bug with roundlo=0.0 |
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.
how do people feel about just bumping the minimum photutils version to 2.1 instead?
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.
Okay by me. I have another PR that will likely need photutils >= 2.0 anyway.
| model.meta.bunit_err = unit.name | ||
|
|
||
| @staticmethod | ||
| def convert_from_jy(model): |
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.
Maybe better to state in the method name what you are converting to rather than from, e.g.
def convert_to_megajansky_per_steradian()
it's a bit long but I think clearer
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.
how does 5937225 look?
|
clean regtest run for okify. the last one was a re-run, which we still can't okify from ok, trying again because of this sonar scan URL issue |
Resolves JP-3943
Closes #9295
This PR improves the compatibility between the tweakreg and source_catalog steps as follows:
tweakregandsource_catalogcall the same underlying code for source findingsource_catalogas already existed fortweakregsource_catalogwhensegmentationis the starfinder (as is the default)source_catalog, bringing it in line with what already happens intweakregon main: Prior to this PR, insource_catalog, the computed background was subtracted from the data before source finding. As of this PR, the computed background is instead added to the source finding threshold. Both options are viable and the differences in the source catalogs are small.tweakreg, bringing it in line with what already happens insource_catalogon main and what is in the SourceFinder documentation: Prior to this PR, intweakreg, the threshold passed intoSourceFinderwas single-valued. As of this PR, the threshold is an image representing a per-pixel RMS threshold based on the background.The two latter changes cause some small changes in the expected source catalogs from both steps.
Tasks
Build 12.0(use the latest build if not sure)no-changelog-entry-needed)changes/:echo "changed something" > changes/<PR#>.<changetype>.rst(see changelog readme for instructions)docs/pageokify_regteststo update the truth files