Skip to content
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

rcal-850 Addition of catalog step to mosaic pipeline #1266

Merged
merged 7 commits into from
Jun 6, 2024

Conversation

ddavis-stsci
Copy link
Collaborator

@ddavis-stsci ddavis-stsci commented Jun 6, 2024

Resolves RCAL-850

Closes #1256

This PR adds the source catalog step to run on the resampled image at the end of the mosaic pipeline to create the
_cat.asdf
_segm.asdf
files.

Checklist

Copy link
Collaborator

@schlafly schlafly left a comment

Choose a reason for hiding this comment

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

LGTM, I flagged one bit I was confused by.

@@ -77,7 +80,8 @@ def process(self, input):
# check to see if the product name contains a skycell name & if true get the skycell record
product_name = input.asn_table["products"][0]["name"]
try:
skycell_name = product_name.split("_")[3]
skycell_name = product_name.split("_")[1]
skycell_name = input.asn_table["target"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

At present the product_name-based skycell_name is immediately overwritten by the target-based one? Probably just delete line 83 if we have updated asn files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And now you know why it is a draft.

Copy link

codecov bot commented Jun 6, 2024

Codecov Report

Attention: Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 78.87%. Comparing base (f593a51) to head (b55791f).
Report is 196 commits behind head on main.

Files with missing lines Patch % Lines
romancal/pipeline/mosaic_pipeline.py 12.50% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1266      +/-   ##
==========================================
- Coverage   78.92%   78.87%   -0.05%     
==========================================
  Files         117      117              
  Lines        8065     8071       +6     
==========================================
+ Hits         6365     6366       +1     
- Misses       1700     1705       +5     
Flag Coverage Δ *Carryforward flag
nightly 62.79% <ø> (ø) Carriedforward from f593a51

*This pull request uses carry forward flags. Click here to find out more.

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

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jun 6, 2024
@ddavis-stsci ddavis-stsci marked this pull request as ready for review June 6, 2024 19:09
@ddavis-stsci ddavis-stsci requested a review from a team as a code owner June 6, 2024 19:09
Copy link
Collaborator

@schlafly schlafly left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@ddavis-stsci ddavis-stsci merged commit d10f06b into spacetelescope:main Jun 6, 2024
29 of 30 checks passed
@ddavis-stsci ddavis-stsci deleted the rcal-850 branch June 6, 2024 20:06
zacharyburnett pushed a commit to zacharyburnett/romancal that referenced this pull request Jul 22, 2024
…1266)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation mosaic pipeline regression_testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add source catalog step to mosaic pipeline
2 participants