fetch_params

gwas_tools.helpers.fetch_params.get_gps_and_freq(glitch_type, gps1, gps2, ifo, ml_confidence=(0.9, 1.0), snr=(12, 20), save_path=None)

Get GPS and peak frequency between gps1 and gps2 for glitches of type glitch_type.

Parameters:
  • glitch_type (str) – glitch string identifier

  • gps1 (str) – starting GPS

  • gps2 (str) – ending GPS

  • ifo (str) – interferometer identifier

  • ml_confidence (tuple[float], optional) – ml confidence limits (default : (0.9, 1.0))

  • snr (tuple[int], optional) – SNR limits (default : (12, 20))

  • save_path (str, optional) – where to save output in csv format (default : None)

Returns:

  • numpy array – GPS times of the events

  • numpy array – Glitches peak frequencies

gwas_tools.helpers.fetch_params.get_gps_sequence(start, end, step)

Get a sequence of GPS times.

Parameters:
  • start (int) – starting GPS

  • end (int) – ending GPS

  • step (int) – time between two consecutive GPS times

Returns:

consecutive GPS times (every step seconds)

Return type:

numpy array