-
Notifications
You must be signed in to change notification settings - Fork 22
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
FRB Schema for the CHIME Telescope #217
base: main
Are you sure you want to change the base?
Conversation
Seeing many failed checks, is there action I should take on this? Cheers! |
Yes, there were some missing contributing instructions to configure pre-commit hooks. See #218. |
@tabbott36 A gentle reminder. Please validate it and run prettier, before we start reviewing it. |
Co-authored-by: Dakota Dutko <[email protected]>
Hi @tabbott36, I see from your commits that you ran the Also, I would suggest updating the names of your example files, for example: from |
Hi @dakota002, thanks for the help! Yes, I will revert the versioning and rename the example files. |
@@ -0,0 +1,24 @@ | |||
{ | |||
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/chime/frb.schema.json", | |||
"alert_type": "detection", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a valid option, the allowed values are:
"allowedValues": [
"initial",
"update",
"retraction"
]
These are defined here https://github.com/nasa-gcn/gcn-schema/blob/main/gcn/notices/core/Alert.schema.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review, I was hoping to be consistent with existing CHIME/FRB Alert types (see issue 198), but if this is too much trouble, "initial" can replace what we currently call "detection" and "subsquent".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tabbott36 we are working on adding subsequent
(see #221).
However, initial
will likely remain the same, else we need to take votes from the missions that are already using it.
For validation, as detection
and subsequent
please add a new property, current alert_type
is not consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, sounds good to me. Thanks, Vidushi!
@@ -0,0 +1,26 @@ | |||
{ | |||
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/chime/frb.schema.json", | |||
"alert_type": "subsequent", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also not a valid value for alert_type
, would update
make sense here?
No problem! I have suggested a few other changes that should also fix your validation checks |
Co-authored-by: Dakota Dutko <[email protected]>
Co-authored-by: Dakota Dutko <[email protected]>
Co-authored-by: Dakota Dutko <[email protected]>
Co-authored-by: Dakota Dutko <[email protected]>
Description
Added the FRB schema for the Canadian Hydrogen Intensity Mapping Experiment (CHIME). Also added an example json for each alert type (detection, subsequent, retraction, and update).
Questions for GCN Team
Testing
I modelled the schema after other observatories' schemas but am open to suggestions regarding testing.