Skip to content

Commit

Permalink
update schema version for lsst in schema.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hernandezc1 committed Feb 3, 2025
1 parent c7173aa commit ce8dd4e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pittgoogle/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ def elasticc_schema_helper(schema_dict: dict) -> "Schema":

@staticmethod
def lsst_schema_helper(schema_dict: dict) -> "Schema":
"""Load the Avro schema definition for lsst.v7_1.alert."""
"""Load the Avro schema definition for lsst.v7_3.alert."""
# [FIXME] This is hack to get the latest schema version into pittgoogle-client
# until we can get :meth:`SchemaHelpers.lsst_auto_schema_helper` working.

if not schema_dict["name"] == "lsst.v7_1.alert":
raise NotImplementedError("Only 'lsst.v7_1.alert' is supported for LSST.")
if not schema_dict["name"] == "lsst.v7_3.alert":
raise NotImplementedError(
"Only 'lsst.v7_3.alert', 'lsst.v7_2.alert', and 'lsst.v7_1.alert' are supported for LSST."
)

schema = _ConfluentWireAvroSchema(**schema_dict)

Expand Down

0 comments on commit ce8dd4e

Please sign in to comment.