def __init__(self): QtCore.QThread.__init__(self) self.signal_fr_e = QtCore.SIGNAL("signal_e") self.signal_fr_i = QtCore.SIGNAL("signal_i") self.fr_e_slot_in = nett.slot_in_float_vector_message() self.fr_i_slot_in = nett.slot_in_float_vector_message() ip = helper.obtain_ip_address_compute() self.fr_e_slot_in.connect('tcp://' + ip + ':8000', 'fr_e') self.fr_i_slot_in.connect('tcp://' + ip + ':8000', 'fr_i')
def __init__(self): QtCore.QThread.__init__(self) self.signal_conn_e = QtCore.SIGNAL("signal_e") self.signal_conn_i = QtCore.SIGNAL("signal_i") self.connection_slot_e_in = nett.slot_in_float_vector_message() self.connection_slot_i_in = nett.slot_in_float_vector_message() ip = helper_simple.obtain_ip_address_compute() self.connection_slot_e_in.connect('tcp://' + ip + ':8000', 'total_connections_e') self.connection_slot_i_in.connect('tcp://' + ip + ':8000', 'total_connections_i')
def __init__(self): QtCore.QThread.__init__(self) self.signal = QtCore.SIGNAL("signal") self.connection_slot_in = nett.slot_in_float_vector_message() ip = helper.obtain_ip_address_compute() self.connection_slot_in.connect('tcp://'+ip+':8000', 'total_connections')
def __init__(self, num_regions): super(observe_eta_slot, self).__init__() self.slot = nett.slot_in_float_vector_message() ip = obtain_ip_address_viz() self.slot.connect('tcp://' + ip + ':2007', 'eta') #create dict for the growth_rate region_keys = range(0, num_regions) self.eta_dict = {key: -30.0 for key in region_keys} self.last_message = None
def __init__(self, num_regions): super(observe_growth_rate_slot, self).__init__() self.slot = nett.slot_in_float_vector_message() ip = obtain_ip_address_viz() print ip print num_regions self.slot.connect('tcp://' + ip + ':2006', 'growth_rate') #create dict for the growth_rate region_keys = range(0, num_regions) self.growth_rate_dict = {key: 0.0001 for key in region_keys} self.last_message = None
def __init__(self): QtCore.QThread.__init__(self) self.signal = QtCore.SIGNAL("signal") self.area_list_slot_in = nett.slot_in_float_vector_message() self.area_list_slot_in.connect('tcp://127.0.0.1:2014', 'regions_selected')