Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_sync_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: docker/setup-buildx-action@v1

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Steps to update the alert schema (for example, when the APDB schema is updated).

* set up ``sdm_schemas`` and ``cd python/lsst/alert/packet/``.
* run ``python updateSchema.py $SDM_SCHEMAS_DIR/yml/apdb.yaml ./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``.
* Navigate to the new schema. Copy in the previous ``lsst.vX_X.alert.avsc`` file.
* 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.

Expand Down
115 changes: 115 additions & 0 deletions python/lsst/alert/packet/schema/8/0/lsst.v8_0.MPCORB.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"type": "record",
"namespace": "lsst.v8_0",
"name": "MPCORB",
"fields": [
{
"default": null,
"doc": "Number or provisional designation (in packed form).",
"name": "mpcDesignation",
"type": [
"null",
"string"
]
},
{
"default": null,
"doc": "LSST unique identifier (if observed by LSST).",
Comment thread
ebellm marked this conversation as resolved.
"name": "ssObjectId",
"type": [
"null",
"long"
]
},
{
"default": null,
"doc": "Absolute magnitude, H [mag].",
"name": "mpcH",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Epoch (in MJD, .0 TT) [d].",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

While I think it's true that the epoch mod 1 is always .0, I don't think we need to specify that for a double.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm going to defer this for now.

"name": "epoch",
"type": [
"null",
"double"
]
},
{
"default": null,
"doc": "Mean anomaly at the epoch [deg].",
"name": "M",
"type": [
"null",
"double"
]
},
{
"default": null,
"doc": "Argument of perihelion, J2000.0 [deg].",
"name": "peri",
"type": [
"null",
"double"
]
},
{
"default": null,
"doc": "Longitude of the ascending node, J2000.0 [deg].",
"name": "node",
"type": [
"null",
"double"
]
},
{
"default": null,
"doc": "Inclination to the ecliptic, J2000.0 [deg].",
"name": "incl",
"type": [
"null",
"double"
]
},
{
"default": null,
"doc": "Orbital eccentricity.",
"name": "e",
"type": [
"null",
"double"
]
},
{
"default": null,
"doc": "Semimajor axis [AU].",
"name": "a",
"type": [
"null",
"double"
]
},
{
"default": null,
"doc": "Perihelion distance [AU].",
"name": "q",
"type": [
"null",
"double"
]
},
{
"default": null,
"doc": "MJD of pericentric passage [d].",
"name": "t_p",
"type": [
"null",
"double"
]
}
]
}
24 changes: 24 additions & 0 deletions python/lsst/alert/packet/schema/8/0/lsst.v8_0.alert.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"namespace": "lsst.v8_0",
"type": "record",
"name": "alert",
"doc": "Rubin Avro alert schema v8.0",
"fields": [
{"name": "diaSourceId", "type": "long", "doc": "Identifier of the triggering DiaSource"},
{"name": "observation_reason", "type": ["null", "string"], "doc": "Scheduler reason for the image containing this diaSource (RTN-097).", "default": null},
{"name": "target_name", "type": ["null", "string"], "doc": "Scheduler target for the image containing this diaSource (RTN-097).", "default": null},
{"name": "diaSource", "type": "lsst.v8_0.diaSource"},
{"name": "prvDiaSources", "type": ["null", {
"type": "array",
"items": "lsst.v8_0.diaSource"}], "default": null},
{"name": "prvDiaForcedSources", "type": ["null", {
"type": "array",
"items": "lsst.v8_0.diaForcedSource"}], "default": null},
{"name": "diaObject", "type": ["null", "lsst.v8_0.diaObject"], "default": null},
{"name": "ssSource", "type": ["null", "lsst.v8_0.ssSource"], "default": null},
{"name": "MPCORB", "type": ["null", "lsst.v8_0.MPCORB"], "default": null},
{"name": "cutoutDifference", "type": ["null", "bytes"], "default": null},
{"name": "cutoutScience", "type": ["null", "bytes"], "default": null},
{"name": "cutoutTemplate", "type": ["null", "bytes"], "default": null}
]
}
95 changes: 95 additions & 0 deletions python/lsst/alert/packet/schema/8/0/lsst.v8_0.diaForcedSource.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"type": "record",
"namespace": "lsst.v8_0",
"name": "diaForcedSource",
"fields": [
{
"doc": "Unique id.",
"name": "diaForcedSourceId",
"type": "long"
},
{
"doc": "Id of the DiaObject that this DiaForcedSource was associated with.",
"name": "diaObjectId",
"type": "long"
},
{
"doc": "Right ascension coordinate of the position of the DiaObject [deg].",
Comment thread
ebellm marked this conversation as resolved.
"name": "ra",
"type": "double"
},
{
"doc": "Declination coordinate of the position of the DiaObject [deg].",
"name": "dec",
"type": "double"
},
{
"doc": "Id of the visit where this forcedSource was measured.",
"name": "visit",
"type": "long"
},
{
"doc": "Id of the detector where this forcedSource was measured. Datatype short instead of byte because of DB concerns about unsigned bytes.",
"name": "detector",
"type": "int"
},
{
"default": null,
"doc": "Point Source model flux [nJy].",
"name": "psfFlux",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Uncertainty of psfFlux [nJy].",
"name": "psfFluxErr",
"type": [
"null",
"float"
]
},
{
"doc": "Effective mid-visit time for this diaForcedSource, expressed as Modified Julian Date, International Atomic Time [d].",
"name": "midpointMjdTai",
"type": "double"
},
{
"default": null,
"doc": "Forced photometry flux for a point source model measured on the visit image centered at the DiaObject position [nJy].",
"name": "scienceFlux",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Uncertainty of scienceFlux [nJy].",
"name": "scienceFluxErr",
"type": [
"null",
"float"
]
},
{
"default": null,
"doc": "Filter band this source was observed with.",
"name": "band",
"type": [
"null",
"string"
]
},
{
"doc": "Time when this record was generated.",
"name": "time_processed",
"type": {
"logicalType": "timestamp-micros",
"type": "long"
}
}
]
}
Loading
Loading