Skip to content
Snippets Groups Projects
Forked from IGWN Computing and Software / GraceDB / GraceDB Server
Source project has a limited visibility.
  • Alexander Pace's avatar
    775cd822
    Update views.py for public superevent page: · 775cd822
    Alexander Pace authored
    For S191216ap, the p_terrestrial value was so small:
    pastro_values=[('BNS', 0.0), ('NSBH', 0.0), ('BBH', 0.0), ('Terrestrial', 8.427577149405988e-16), ('MassGap', 0.9999999999999991)]
    
    python was converting it to a NoneType, which would then fail when you tried to sort or compare values. So, for this view, convert NoneType probabilities to 0.0.
    775cd822
    History
    Update views.py for public superevent page:
    Alexander Pace authored
    For S191216ap, the p_terrestrial value was so small:
    pastro_values=[('BNS', 0.0), ('NSBH', 0.0), ('BBH', 0.0), ('Terrestrial', 8.427577149405988e-16), ('MassGap', 0.9999999999999991)]
    
    python was converting it to a NoneType, which would then fail when you tried to sort or compare values. So, for this view, convert NoneType probabilities to 0.0.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.