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

AMON Text conversion #15

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

Conversation

athish-thiru
Copy link
Contributor

AMON has multiple notices in multiple webpages which this conversion handles. I've added the following keywords not in the core schema.

  • signalness
  • energy
  • delta_time
  • p_value
  • event_date
  • sigma_time
  • charge
  • ra_dec_error_50

Athish Thiruvengadam added 2 commits October 23, 2024 16:06
removed utils.py

small fix

updated trigger_date parsing and calet jsons creation

editted conversion.py to deal with inputs that have no 'additional' dictionary

Fixed ra/dec parsing to be seperate

Updated alexis conversion

updated poetry

updated all modules for search_string

 Added \n to additional_info in snews and sk_sn

added all current conversions to main.py

updated id

changed url to lightcurve_url; added  field

Added  field to all conversions
fixed ra_dec_error and ra_dec_error_50

removed comments
- `far` → FAR

### Defines the following new fields for the text notice fields
- `notice_type` → NOTICE_TYPE
Copy link
Member

Choose a reason for hiding this comment

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

NOTICE_TYPE is quiet common in GCN classic, it makes sense to add in core schema itself.

- `coincidence_with` → COINC_PAIR

## Caveats
- The notices have a field called STREAM, but these seems to be degenrate with NOTICE_TYPE and so I've not added these to the JSONs
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- The notices have a field called STREAM, but these seems to be degenrate with NOTICE_TYPE and so I've not added these to the JSONs
- The notices have a field called STREAM, but these seems to be degenerate with NOTICE_TYPE and so I've not added these to the JSONs


## Caveats
- The notices have a field called STREAM, but these seems to be degenrate with NOTICE_TYPE and so I've not added these to the JSONs
- SKYMAP_FITS_URL is a field for the Burst notice but these are not available for any of the notices. Hence, I've not included them in the JSONs
Copy link
Member

Choose a reason for hiding this comment

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


return output


Copy link
Member

Choose a reason for hiding this comment

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

You can try: Python's standard library xml / html parser modules

Copy link
Member

@Vidushi-GitHub Vidushi-GitHub left a comment

Choose a reason for hiding this comment

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

Could you please send example of notices conversion generated from this code?
Previous Notice Vs new JSON

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.

2 participants