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

FRB Schema for the CHIME Telescope #217

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Conversation

tabbott36
Copy link
Contributor

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

  • I tentatively used the "alert_type" parameter (from the Alert schema), however, there are 4 alert types for CHIME/FRB, so if this is not the correct decision, I can add a property to the FRB schema.
  • Can I use a Transient Name Server name for the "id" parameter in the Event schema?

Testing

I modelled the schema after other observatories' schemas but am open to suggestions regarding testing.

@tabbott36
Copy link
Contributor Author

Seeing many failed checks, is there action I should take on this? Cheers!

@lpsinger
Copy link
Member

lpsinger commented Nov 5, 2024

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.

@Vidushi-GitHub
Copy link
Member

Vidushi-GitHub commented Nov 18, 2024

@tabbott36 A gentle reminder. Please validate it and run prettier, before we start reviewing it.

gcn/notices/chime/frb.schema.json Outdated Show resolved Hide resolved
@dakota002
Copy link
Contributor

Hi @tabbott36, I see from your commits that you ran the version command. You don't need to do so, as we will take care of this once your updates are merged into main. Can you please revert the changes in your repo that update fields from 4.1.0 to 4.2.0?

Also, I would suggest updating the names of your example files, for example: from gcn/notices/chime/subsequent.example.json to gcn/notices/chime/frb.subsequent.example.json. The schema name (frb) as a prefix will allow our schema viewer to properly recognize which schema it is an example for

@tabbott36
Copy link
Contributor Author

Hi @dakota002, thanks for the help! Yes, I will revert the versioning and rename the example files.

gcn/notices/chime/detection.example.json Outdated Show resolved Hide resolved
@@ -0,0 +1,24 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/chime/frb.schema.json",
"alert_type": "detection",
Copy link
Contributor

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

Copy link
Contributor Author

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".

Copy link
Member

@Vidushi-GitHub Vidushi-GitHub Nov 22, 2024

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.

Copy link
Contributor Author

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!

gcn/notices/chime/retraction.example.json Outdated Show resolved Hide resolved
gcn/notices/chime/subsequent.example.json Outdated Show resolved Hide resolved
@@ -0,0 +1,26 @@
{
"$schema": "https://gcn.nasa.gov/schema/main/gcn/notices/chime/frb.schema.json",
"alert_type": "subsequent",
Copy link
Contributor

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?

gcn/notices/chime/update.example.json Outdated Show resolved Hide resolved
@dakota002
Copy link
Contributor

Hi @dakota002, thanks for the help! Yes, I will revert the versioning and rename the example files.

No problem! I have suggested a few other changes that should also fix your validation checks

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.

4 participants