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-919: Formalize the patches (sky cells) file (e.g., add it as a reference file) #536

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

perrygreenfield
Copy link
Collaborator

Resolves RCAL

This PR addresses the need to support the skycell definition file as a reference file.

The schema to support this file has been added to RAD.

This supersedes PR #524 due to my screwups in managing that. I believe it addressed most of the comments made for that.

Copy link

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@50958b8). Learn more about missing BASE report.
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #536   +/-   ##
=======================================
  Coverage        ?   96.61%           
=======================================
  Files           ?        4           
  Lines           ?      266           
  Branches        ?        0           
=======================================
  Hits            ?      257           
  Misses          ?        9           
  Partials        ?        0           

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

@@ -306,6 +306,9 @@ def test_ref_file_meta_common(ref_file_schema):
"""
all_of = ref_file_schema["properties"]["meta"]["allOf"]

if ref_file_schema["id"].find("skycells") >= 0:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this expected to return a negative value at some point? Otherwise it implies the rest of the code would never be run.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, if the reference file schema is not a skycell schema the value should be -1 and then it should continue on; if it is, it doesn't use the common meta since some of the attributes in that make no sense for this reference file.

$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
id: asdf://stsci.edu/datamodels/roman/schemas/reference_files/skycells-1.0.0

title: Skycells File Schema
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
title: Skycells File Schema
title: Skycells Reference File Schema

@@ -513,4 +513,9 @@ tags:
title: MSOS Stack Level 3 Schema
description: |-
Level 3 schema for SSC's MSOS stack products
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/skycells-1.0.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please move this block to the reference file section?

@@ -513,4 +513,9 @@ tags:
title: MSOS Stack Level 3 Schema
description: |-
Level 3 schema for SSC's MSOS stack products
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/skycells-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/skycells-1.0.0
title: Schema for the skycell definitions
Copy link
Collaborator

Choose a reason for hiding this comment

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

This title should match the title within the actual schema file

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.

2 participants