km3dq_common.detector_status_library

Functions

date_to_datetime(d)

Convert a date-string "yyyy-mm-dd hh:mm" into a datetime

get_det_run_timerange(site)

Return all the start/end of time/run for all detectors of a site

get_det_run_from_date(site, date_str)

Input:

Module Contents

km3dq_common.detector_status_library.date_to_datetime(d)[source]

Convert a date-string “yyyy-mm-dd hh:mm” into a datetime

km3dq_common.detector_status_library.get_det_run_timerange(site)[source]

Return all the start/end of time/run for all detectors of a site Data read from the lw_db/Common sftp area This script is meanly to bypass the request to KM3DB that can be problematic for nicegui website

km3dq_common.detector_status_library.get_det_run_from_date(site, date_str)[source]

Input: - site: ARCA/ORCA - date/time with the format “yyyy-mm-dd hh:mm” Output: - Detector name / run number corresponding to this date/time.