channel_handlers

channel_handlers will take care of a specific column in a 2D data set, with user-specified formatting

decode_tai_vernier(args, y)[source]
class channel_handler[source]

Bases: object

__init__(ic, fmt)[source]
make_label()[source]
defsplit(defstr, fmt)[source]
handlers = []
builders = [<class 'acq400_hapi.channel_handlers.channel_handlers.ch_raw'>, <class 'acq400_hapi.channel_handlers.channel_handlers.ch_egu'>, <class 'acq400_hapi.channel_handlers.channel_handlers.ch_db'>, <class 'acq400_hapi.channel_handlers.channel_handlers.ch_tai_vernier'>, <class 'acq400_hapi.channel_handlers.channel_handlers.ch_bitfield'>]
decode_config(lno, defstr, client_args=None)[source]
class ch_raw[source]

Bases: channel_handler

def_fmt = 'CH{} bits'
__init__(ic, fmt=None)[source]
build(defstr, client_args)[source]
class ch_egu[source]

Bases: ch_raw

def_fmt = 'CH{} V'
__init__(ic, args, fmt=None)[source]
build(defstr, client_args)[source]
class ch_db[source]

Bases: ch_raw

def_fmt = 'CH{} dB'
__init__(ic, args, fmt=None)[source]
build(defstr, client_args)[source]
class ch_tai_vernier[source]

Bases: ch_raw

def_fmt = 'CH{} TAIv'
__init__(ic, args, fmt=None)[source]
build(defstr, client_args)[source]
class ch_bitfield[source]

Bases: channel_handler

def_fmt = 'BITS{}'
__init__(ic, mask, fmt=None)[source]
static count_bits(mask)[source]
static calc_shr(mask)[source]
build(defstr, client_args)[source]
process_pcfg(args)[source]

return list of channel_handler objects built from config file