Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add LSST schema v_2 and v_3 #70

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

Conversation

hernandezc1
Copy link

@hernandezc1 hernandezc1 commented Feb 3, 2025

LSST schema versions 7.2 and 7.3 are now available. This PR creates subdirectories containing schema information to pittgoogle/schemas/lsst/7 and updates schemas.py by setting lsst.v7_3.alert as the default schema (i.e., lsst.v7_1.alert -> lsst.v7_3.alert.

I believe these changes cover all of the bases outlined in add a new schema to the registry.

@hernandezc1 hernandezc1 self-assigned this Feb 3, 2025
@hernandezc1 hernandezc1 requested a review from troyraen February 3, 2025 17:34
Copy link
Contributor

@troyraen troyraen left a comment

Choose a reason for hiding this comment

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

Great!! Test this to make sure things work. I think it will need some minor changes to give access to all schema versions. Otherwise, LGTM. Thanks for doing it.

Comment on lines -39 to +40
- name: 'lsst.v7_1.alert'
path: 'schemas/lsst/7/1/lsst.v7_1.alert.avsc'
- name: 'lsst.v7_3.alert'
path: 'schemas/lsst/7/3/lsst.v7_3.alert.avsc'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think all three schema versions need to be registered here in order to be usable.

@@ -76,12 +76,12 @@ def elasticc_schema_helper(schema_dict: dict) -> "Schema":

@staticmethod
def lsst_schema_helper(schema_dict: dict) -> "Schema":
Copy link
Contributor

Choose a reason for hiding this comment

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

This function should also specify all schema versions that are available.

Copy link
Contributor

Choose a reason for hiding this comment

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

Add a readme or something that explains where these files came from.

@troyraen
Copy link
Contributor

Oh, please also update CHANGELOG.md.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants