-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
tests/test_models.py
Outdated
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.
Thanks @WilliamJamieson!
3c07c6a
to
17fb6cf
Compare
17fb6cf
to
889cbde
Compare
d2713e4
to
b161e74
Compare
tests/test_open.py
Outdated
if node_class == stnode.SourceCatalog: | ||
pytest.xfail("SourceCatalog does not have a meta attribute yet") | ||
|
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.
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.
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.
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): |
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.
Is the segmentation map going to be a data model in its own right?
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.
2bd8bf6
to
cdbaa77
Compare
ec24d40
to
2756188
Compare
for more information, see https://pre-commit.ci
Superseded by #331 |
(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
CHANGES.rst
under the corresponding subsection