def __init__(self, ant_id, fpga, engine_id=0, host_instrument=None, config_file=None, descriptor='wb_rts_fengine'): ''' Constructor @param ant_id: @param parent: fpga host for engine (already programed) @param engine_id: index within FPGA @param instrument: instrument it is part of @param descriptor: description of fengine ''' FengineFpga.__init__(self, ant_id, fpga, engine_id, host_instrument, config_file, descriptor) self._get_wb_rts_fengine_config()
def __getattribute__(self, name): '''Overload __getattribute__ to make shortcuts for getting object data. ''' if name == 'trigger_level': return self.host.device_by_name('trigger_level') if name == 'debug_status': return self.host.device_by_name('debug_status') #default return FengineFpga.__getattribute__(self, name)