xli2522 / gracedb_public

Non-member access to The Gravitational-Wave Candidate Event Database via GraceDB REST API
Other
1 stars 0 forks source link

[ENH] Superevent Object Oriented Structure. #6

Closed xli2522 closed 1 year ago

xli2522 commented 1 year ago

Issue:

The current superevent id and file structure in grace_configurations is too messy. Considering how the Stellarium GWS plugin dropdown menu works, it is better to implement a simpler superevent object oriented structure.

xli2522 commented 1 year ago

Want dynamic.parse -> superevent data structure

-> menu display-only: superevent properties ['superevent_id', 'gw_id', 'category', 'created', 'submitter', 'em_type', 't_start', 't_0', 't_end', 'far', 'time_coinc_far', 'space_coinc_far', 'labels', 'links', 'preferred_event_data']

->update to superevent class getter setter-> refresh 'links'

links - ['labels', 'logs', 'files', 'self', 'voevents', 'emobservations']

-> superevent getter/setter 'files'

xli2522 commented 1 year ago

Object --> DB Object ---Object -->Superevent Object -----------------> display-only properties -----------------> links ---------------------> files