km3dq_common.lw_db_defect_library¶
Functions¶
|
Read defect files stored on SFTP |
|
Read defect files stored on SFTP. Simply returns lines |
Module Contents¶
- km3dq_common.lw_db_defect_library.read_defect_file(det, def_tag='def-HEAD', type_filter=None)[source]¶
Read defect files stored on SFTP
=== Arguments === - det : detector name - [string] - Ex: “D0ARCA021”, “D0ORCA018”… - def_tag : defect tag - [string] - type_filter : if not empty, filter on the defect type - If empty, read
all defect files except the sign_off (see function below) [array of strings] - Ex: [“daq”, “operation”]
=== Output === - Dictionnary with def_[defect] as keys and a value for each affected run. This value will be decoded by the decode_defect_diag_byte function. Ex: {‘def_daq’: {}, ‘def_operation’: {16501: 1, 16503: 2}…}
- km3dq_common.lw_db_defect_library.read_basic_defect_file(det, def_type, def_diag, def_tag='def-HEAD')[source]¶
Read defect files stored on SFTP. Simply returns lines
=== Arguments === - det : detector name - [string] - Ex: “D0ARCA021”, “D0ORCA018”… - defect_type - defect_diag - def_tag : defect tag - [string]
=== Output === - Array of lines