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

Add Source Catalog Model #317

Closed
wants to merge 4 commits into from

Conversation

bmorris3
Copy link
Contributor

@bmorris3 bmorris3 commented Feb 14, 2024

(work in progress)

This PR implements exposes a model class for the output from the Source Catalog Step. The schema is defined in spacetelescope/rad#374, and the step is being developed in spacetelescope/romancal#1102.

The tests will fail until spacetelescope/rad#374 is merged.

Checklist

Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (087a60d) 97.56% compared to head (ec24d40) 97.60%.

❗ Current head ec24d40 differs from pull request most recent head a46f649. Consider uploading reports for the commit a46f649 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #317      +/-   ##
==========================================
+ Coverage   97.56%   97.60%   +0.04%     
==========================================
  Files          30       31       +1     
  Lines        2788     2839      +51     
==========================================
+ Hits         2720     2771      +51     
  Misses         68       68              

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bmorris3 bmorris3 marked this pull request as ready for review February 19, 2024 17:37
@bmorris3 bmorris3 requested review from WilliamJamieson and a team as code owners February 19, 2024 17:37
@bmorris3 bmorris3 force-pushed the source-catalog branch 2 times, most recently from d2713e4 to b161e74 Compare February 22, 2024 15:30
Comment on lines 229 to 231
if node_class == stnode.SourceCatalog:
pytest.xfail("SourceCatalog does not have a meta attribute yet")

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like your wanting to include a meta attribute in SourceCatalog if this is the case, update your schemas to include that and remove this change. I think that will fix many of the issues.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems like there's some uncertainty on whether or not to include it, and definitely uncertainty on what that meta should contain. I got the tests passing for now, but I agree that this bit may be unnecessary now.

return save_node(source_catalog, filepath=filepath)


def mk_segmentation_map(*, filepath=None, shape=(4096, 4096), **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the segmentation map going to be a data model in its own right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

@bmorris3 bmorris3 force-pushed the source-catalog branch 2 times, most recently from 2bd8bf6 to cdbaa77 Compare February 22, 2024 15:49
@nden
Copy link
Collaborator

nden commented Mar 29, 2024

Superseded by #331

@nden nden closed this Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants