Webpages

Note

Functions for making public and private webpages using FRA. These functions are used internally within the Fast Response package to automatically generate webpages, with only a few exceptions.

Updates to private webpages

fast_response.web_utils.updateFastResponseWeb(analysis, gw=False)[source]

Create analysis specific page, and update plots with information from all analyses

Parameters:
  • analysis (dict) – Dictionary of FastResponseAnalysis results

  • gw (bool) – Indicate if event is a GWFollowup (uses GW-specific results page and dataframe). Default False

fast_response.web_utils.updateDataFrame(analysis, gw=False, make_df=False)[source]

Read in official Fast Response Dataframe, add these results, save DataFrame

Parameters:
  • analysis (dict) – Dictionary of FastResponseAnalysis results

  • gw (bool) – Indicate if event is a GWFollowup (uses GW-specific dataframe). Default False

  • make_df (bool) – Make a new dataframe from scratch. Default False NOTE: this will overwrite any existing Dataframe in the expected path.

fast_response.web_utils.createFastResponsePage(analysis, gw=False)[source]

Create analysis specific page

Parameters:
  • analysis (dict) – Dictionary of FastResponseAnalysis results

  • gw (bool) – Indicate if event is a GWFollowup (uses GW-specific webpage). Default False

fast_response.web_utils.updateFastResponsePlots(gw=False)[source]

Update overview p-value distribution for all analyses

Parameters:

gw (bool) – Indicate if event is a GWFollowup (makes p-val distribution for all GW followups only). Default False.

fast_response.web_utils.format_dec_str(dec)[source]

Add a + before declination value if decl > 0.

Parameters:

dec (float) – Declination value

Alert or external FRA-specific functions

fast_response.web_utils.updateFastResponseTable(analysis)[source]

Push information from this analysis to summary webpage tables, include new entries where applicable. This uses the general FastResponse webpage (not GW), see updateGWTable for the GWFollowup equivalent routine.

Parameters:

analysis (dict) – Dictionary of FastResponseAnalysis results

fast_response.web_utils.update_internal_public(analysis_1000, analysis_2d, alert_gcn=None, fra_circular=None)[source]

Push information from this analysis to summary tables on PUBLIC Alert Followup webpage. See updateGW_public: for the equivalent routine for GWFollowup

Parameters:
  • analysis_1000 (dict) – FastResponseAnalysis results for a 1000 sec time window

  • analysis_2d (dict) – FastResponseAnalysis results for a 2 day time window

  • alert_gcn (int or tuple of ints) – Either a single int (Circular number) or tuple (run id, event id) if linking to notice

  • fra_circular (int) – GCN circular sent for FRA followup

GW FRA-specific functions

fast_response.web_utils.updateGWTable(analysis)[source]

Push information from this analysis to summary GWFollowup webpage tables, include new entries where applicable. This uses the the GWFollowup webpage, see updateFastResponseTable for the Alert or External Followup equivalent routine

Parameters:

analysis (dict) – Dictionary of FastResponseAnalysis results for a GWFollowup

Updates to GW public webpage

fast_response.web_utils.updateGW_public(analysis, circular=None)[source]

Push information from this analysis to summary tables on GW PUBLIC followup webpage. See createGWEventPage for the function to create the event-specific webpage, if neutrinos are sent, and update_internal_public for the equivalent routine for alert event followup

Parameters:
  • analysis (dict) – Dictionary of results from UML and LLAMA analyses (should be read from the GCN Notice sent with results of both)

  • circular (int) – GCN circular number, which links to circular rather than the notice

fast_response.web_utils.createGWEventPage(analysis)[source]

Create event-specific PUBLIC webpage with neutrino information, for a GW where neutrino information is sent over GCN (p<10%)

Parameters:

analysis (dict) – Dictionary of results from UML and LLAMA analyses (should be read from the GCN Notice sent with results of both)