lst_auto_rta.plot_line_delay.process_night

lst_auto_rta.plot_line_delay.process_night(night, nb_process, force_reload, data_base_path, obs_relative_dl1_folder, obs_relative_data_folder, relative_logs_folder, output_file_prefix, rate_aggregation_str, nb_retries, re_try_wait_time)[source]

Parses DL1 and log files of an entire night to plot the event ids and processing rates wrt time

Parameters:
  • night (str) – Night data in format “YYYYMMDD”

  • nb_process (int) – Number of process to use to parse the files

  • force_reload (bool) – If true, the data and logs files are re-processed even if the dataframe is already saved at the output location.

  • data_base_path (pathlib.Path) – Path to the the folder containing the nights directories

  • obs_relative_dl1_folder (pathlib.Path) – Relative path to the folder containing dl1 files from the night directory

  • obs_relative_data_folder (pathlib.Path) – Relative path to the folder containing the data (dl1, dl2, dl3) subfolder from the night directory.

  • relative_logs_folder (pathlib.Path) – Relative path to the folder containing the night’s logs from the night repository

  • output_file_prefix (str) – Prefix to prepend to the DataFrame and Figure to save. The night str will be appended to make the full output file names.

  • rate_aggregation_str (str) – Aggregation string in pandas time grouper syntax. For example for 10 seconds: “10S”

  • nb_retries (int) – Number of times to re-try reading a DL1 file.

  • re_try_wait_time (float) – Amount of time, in seconds, to wait before re-trying to open a file.