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

Refactor Schema class, plus some other fix ups #50

Merged
merged 19 commits into from
Jul 2, 2024
Merged

Conversation

troyraen
Copy link
Contributor

@troyraen troyraen commented Jul 2, 2024

Added

  • A default schema to be used when no schema is provided.
  • Child classes for schema.Schema that are specific to different serialization formats.

Fixed

  • Support for the latest LSST schema version (lsst.v7_1.alert). Note that this is the only LSST schema version currently supported.

Changed

  • Renamed exceptions.SchemaNotFoundError -> exceptions.SchemaError, repurposed for more general use.
  • Updates to documentation.

Removed

  • Removed exceptions.OpenAlertError. Use exceptions.SchemaError instead.
  • Removed dependency on lsst-alert-packet package. We cannot install this from a git repo and also publish our package to PyPI. Need to figure out how to fix this. Without it, 'schema.SchemaHelper.lsst_auto_schema_helper' will not work.

troyraen added 5 commits July 1, 2024 20:31
* _local_schema_helper -> default_schema_helper
* _lsst_schema_helper -> lsst_schema_helper
@troyraen troyraen changed the title Move Schema into dedicated module, plus some fix ups Refactor Schema class, plus some other fix ups Jul 2, 2024
@troyraen troyraen marked this pull request as ready for review July 2, 2024 20:29
@troyraen troyraen merged commit 9747522 into main Jul 2, 2024
9 checks passed
@troyraen troyraen deleted the u/raen/fixup/code branch July 2, 2024 20:31
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.

1 participant