snews_cs.cs_utils¶
Example initial dosctring
Module Contents¶
Classes¶
SNEWS format datetime objects |
Functions¶
|
Set environment parameters |
|
Logger |
|
Default alert message data |
- snews_cs.cs_utils.set_env(env_path=None)[source]¶
Set environment parameters
- Parameters
env_path (str, (optional)) – path for the environment file. Use default settings if not given
- snews_cs.cs_utils.data_cs_alert(p_vals=None, nu_times=None, detector_names=None, p_val_avg=None, sub_list_num=None)[source]¶
Default alert message data
- Parameters
p_vals (list) – list with p-values of the observations involved in the alert
nu_time (list) – list of neutrino arrival times
detector_names (list) – list of ids of the detectors involved in the alert
p_val_avg (float) – Naive, average p value
sub_list_num (int) – The sublist number of the triggered alert
- Returns
dictionary of the complete alert data
- Return type
dict