km3dq_common.lw_db_library

Functions

decode_defect_diag_byte(value, def_type0)

Decodes the assigned defect (integer) for a given type and returns a single

decode_defect_file(defect_file_dict, run_nb)

Decode the defect file and returns

Module Contents

km3dq_common.lw_db_library.decode_defect_diag_byte(value, def_type0)[source]

Decodes the assigned defect (integer) for a given type and returns a single string.

=== Arguments === - value : diagnosis value for a given type - [integer] - def_type: defect type (“daq”, “operation”…) - [string]

=== Output === - Single string contained all the corresponding defects separated by a slash Ex: ‘missing_data_dst / jmergefitfailure /’

km3dq_common.lw_db_library.decode_defect_file(defect_file_dict, run_nb)[source]

Decode the defect file and returns

=== Arguments === - defect_file_dict: defect dictionnary produced by the read_defect_file

function - [dictionnary]

  • run_nb : run number - [integer]

=== Output === - Defects assigned to this run. Both a dict and string (to be used in html - See qaqcprocessing/dst-process.py) are returned. Ex: {‘str’: ‘<b> def_data_processing </b>: missing_data_dst / ‘,

‘dict’: {‘def_data_processing’: ‘missing_data_dst / ‘}}