Skip to content

Commit

Permalink
Update schema with nullable trailNdata
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
bsmartradio committed Dec 22, 2023
1 parent 332a458 commit 946a730
Show file tree
Hide file tree
Showing 7 changed files with 314 additions and 316 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Steps to update the alert schema (for example, when the APDB schema is updated).
* To update the schema, you must have the path to the apdb.yaml file and have chosen a version number. If the directory for your version
* does not already exist, ``updateSchema.py`` will create it.

* run ``python updateSchema.py /path/to/LSST/code/sdm_schemas/yml/apdb.yaml "6.0"`` All Generated files do not need to be altered.
* Navigate to the new schema. Copy in the previous ``lsst.vX_X.avsc`` file and ``lsst.vX_X.diaNondetectionLimit.avsc``.
* run ``python updateSchema.py /path/to/LSST/code/sdm_schemas/yml/apdb.yaml Path/To/alert_packet/lsst/alert/packet/schema "6.0"`` All Generated files do not need to be altered.
* Navigate to the new schema. Copy in the previous ``lsst.vX_X.alert.avsc`` file and ``lsst.vX_X.diaNondetectionLimit.avsc``.
* Within the two copied files, update ``"namespace": "lsst.vX_X",`` line at the top of each ``*.avsc`` file to the new version.
* Update the contents of those avro schema files to reflect the new schema.
* Update the sample alert packet in ``sample_data``:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,35 @@
"type": "long"
},
{
"doc": "Point Source model flux.",
"default": null,
"doc": "Point Source model flux.",
"name": "psfFlux",
"type": [
"null",
"float"
]
},
{
"doc": "Uncertainty of psfFlux.",
"default": null,
"doc": "Uncertainty of psfFlux.",
"name": "psfFluxErr",
"type": [
"null",
"float"
]
},
{
"doc": "x position at which psfFlux has been measured.",
"default": null,
"doc": "x position at which psfFlux has been measured.",
"name": "x",
"type": [
"null",
"float"
]
},
{
"doc": "y position at which psfFlux has been measured.",
"default": null,
"doc": "y position at which psfFlux has been measured.",
"name": "y",
"type": [
"null",
Expand All @@ -65,8 +65,8 @@
"type": "double"
},
{
"doc": "Filter band this source was observed with.",
"default": null,
"doc": "Filter band this source was observed with.",
"name": "band",
"type": [
"null",
Expand Down
Loading

0 comments on commit 946a730

Please sign in to comment.