Skip to content
Snippets Groups Projects

add svom pipeline

Merged Alexander Pace requested to merge add-svom into master
2 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
726 727 # One or the other may be present, but not both
727 728 VOEvent_params = vp.convenience.get_toplevel_params(v)
  • Suggested change
    728 VOEvent_params = vp.convenience.get_toplevel_params(v)
    728 VOEvent_params = vp.convenience.get_toplevel_params(v)
    729 # Also grab parameters from embedded group if there, needed for SVOM
    730 Svom_ident = vp.convenience.get_grouped_params(v).get('Svom_Identifiers')
    731 Svom_detect = vp.convenience.get_grouped_params(v).get('Detection_Info')
    732 if Svom_ident is not None:
    733 VOEvent_params.update(Svom_ident)
    734 if Svom_detect is not None:
    735 VOEvent_params.update(Svom_detect)
    Edited by Brandon Piotrzkowski
  • same result when i apply this patch on my dev box:

    diff --git a/gracedb/events/translator.py b/gracedb/events/translator.py
    index e33d64b2..a3dcb815 100644
    --- a/gracedb/events/translator.py
    +++ b/gracedb/events/translator.py
    @@ -726,6 +726,14 @@ def populateGrbEventFromVOEventFile(filename, event):
         # Fermi uses Trig_Dur or Data_Integ, while Swift uses Integ_Time
         # One or the other may be present, but not both
         VOEvent_params = vp.convenience.get_toplevel_params(v)
    +    # Also grab parameters from embedded group if there, needed for SVOM
    +    Svom_ident = vp.convenience.get_grouped_params(v).get('Svom_Identifiers')
    +    Svom_detect = vp.convenience.get_grouped_params(v).get('Detection_Info')
    +    if Svom_ident is not None:
    +        VOEvent_params.update(Svom_ident)
    +    if Svom_detect is not None:
    +        VOEvent_params.update(Svom_detect)
    +
         trig_dur_params = ["Trig_Dur", "Trans_Duration", "Data_Integ",
                            "Integ_Time", "Trig_Timescale", "Exposure"]
         trigger_duration = None
    ]$ gracedb -s https://gracedb-dev1.ligo.org/api/ create event External SVOM ./eclairs_file.xml GRB
    {
        "warnings": [
            "Problem scanning data. No alert issued (no such child: Description)"
        ],
        "submitter": "alexander.pace@ligo.org",
        "created": "2024-02-21 02:00:08 UTC",
        "group": "External",
        "graceid": "E419875",
        "pipeline": "SVOM",
        "gpstime": 1365206429.758,
        "reporting_latency": null,
        "instruments": "",
        "nevents": null,
        "offline": false,
    ...
    ...

    @brandon.piotrzkowski @naresh.adhikari could you further inspect that you're submitting a valid VOEvent, or could you coordinate with @roberto.depietri in testing these changes in minikube?

  • That's unfortunate. This isn't a VOEvent type that is being sent live but just a proposed template, so there may be issues that haven't been ironed out yet. Based on the error output there appears to be a missing field Description:

      <How>
        <Description>Some description</Description>
      </How>

    I recall we worked out the minimum fields needed to upload an event to GraceDB a few years ago, which did have this field: alert_packet_minimum.xml

    We'll reach out to our contact to let her know about this issue.

  • @alexander.pace @brandon.piotrzkowski Testing with new xml filesb24021402_eclairs-wakeup.xml Rachel provided, it seems working.

    gracedb -s https://gracedb-test.ligo.org/api/ create event External SVOM ./sb24021402_eclairs-wakeup.xml GRB

    Attached is the test upload link.

  • In the meantime you could try manually editing a GRB VOEvent that you know uploads and parses correctly to include the "Exposure" parameter for duration and 'Burst_Id' for trigger id and confirm that those values get ingested. If they do, then it's a matter of coordinating with your contact to produce a valid VOEvent.

  • I will do that. Thank you Alex.

  • it seems working.

    It doesn't fail like the others do, but the parameters from the svom_identifiers group: Screen_Shot_2024-02-21_at_8.20.23_AM

    didn't get ingested into the database: Screen_Shot_2024-02-21_at_8.20.51_AM

    presumedly because brandon's proposed patch didn't make it onto the test server yet. I'll test it again on my end and if it checks out and is backwards compatible with other GRB events I'll get it onto the test server later today.

  • Okay, with Brandon's suggestion, the parameters are successfully ingested. The example that @naresh.adhikari provided from rachel didn't include an 'Exposure' parameter so I manually added it under Svom_Indentifiers: Screen_Shot_2024-02-21_at_9.48.43_AM

    And under Detection_Info: Screen_Shot_2024-02-21_at_9.47.54_AM

    And they were both ingested into the database on my development server: Screen_Shot_2024-02-21_at_9.49.09_AM

    I'm pushing the changes to the test server for confirmation by @brandon.piotrzkowski and @naresh.adhikari and then we can get it merged into the source tree for validation on playground.

  • I see that Exposure is not in the updated version of the notice. Checking with our contact Rachel whether we should use instead Timescale or some other keyword now.

  • We do have confirmation that Timescale is now being used over Exposure and is still under the Detection_Info group. We've stressed to our contact that keeping the fields consistent with this moving forward will important to avoid further code changes.

    Screenshot_2024-02-22_at_11.26.19_AM

  • thanks @brandon.piotrzkowski. This change is rolling out to gracedb-test. Could you or @naresh.adhikari do a round of testing then give the go-ahead to get it merged into master and onto playground for release?

    It should deploy fully in around 20 minutes

  • @naresh.adhikari submitted an event and looks good to me: https://gracedb-test.ligo.org/events/E649221

    I see both the ID and duration showing up now.

    Edited by Brandon Piotrzkowski
  • Sounds good, merging in. I'll be staged on playground before rolling out to prod shortly afterwards.

  • Please register or sign in to reply
  • Alexander Pace added 1 commit

    added 1 commit

    • 5a9da0d1 - patch to accept svom parameters

    Compare with previous version

  • Alexander Pace added 1 commit

    added 1 commit

    Compare with previous version

  • Alexander Pace marked this merge request as ready

    marked this merge request as ready

  • merged

  • mentioned in issue #255 (closed)

  • Alexander Pace mentioned in merge request !201 (merged)

    mentioned in merge request !201 (merged)

  • mentioned in merge request emfollow/gwcelery!1379

  • Please register or sign in to reply
    Loading