99fb650dee4598e3bd61da14b6e03f940f34e018,spynnaker/pyNN/connections/spynnaker_poisson_control_connection.py,SpynnakerPoissonControlConnection,set_rates,#SpynnakerPoissonControlConnection#Any#Any#,77

Before Change



            message = EIEIODataMessage.create(EIEIOType.KEY_PAYLOAD_32_BIT)

            events_in_packet = 0
            while pos < len(neuron_id_rates) and events_in_packet < max_keys:
                (neuron_id, rate) = neuron_id_rates[pos]
                key = self._atom_id_to_key[control_label][neuron_id]
                rate_accum = int(round(rate * DataType.S1615.scale))
                message.add_key_and_payload(key, rate_accum)
                pos += 1
                events_in_packet += 1
            ip_address, port = self._send_address_details[control_label]
            self._sender_connection.send_eieio_message_to(
                message, ip_address, port)

After Change


            control_label = self._control_label(label)
        pos = 0
        while pos < len(neuron_id_rates):
            message, pos = self._assemble_message(
                self._atom_id_to_key[control_label], neuron_id_rates, pos)
            ip_address, port = self._send_address_details[control_label]
            self._sender_connection.send_eieio_message_to(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: 99fb650dee4598e3bd61da14b6e03f940f34e018
Time: 2018-01-16
Author: donal.k.fellows@manchester.ac.uk
File Name: spynnaker/pyNN/connections/spynnaker_poisson_control_connection.py
Class Name: SpynnakerPoissonControlConnection
Method Name: set_rates


Project Name: michaelhush/M-LOOP
Commit Name: a334cd6f04461ca8d57f35f0ebde68f5520fd689
Time: 2020-06-15
Author: zakven@mit.edu
File Name: mloop/neuralnet.py
Class Name: SingleNeuralNet
Method Name: load


Project Name: scipy/scipy
Commit Name: d9934d50ff970150978c29b393b66ab73dfe6247
Time: 2014-05-15
Author: andyfaff@gmail.com
File Name: scipy/optimize/_differentialevolution.py
Class Name: DifferentialEvolutionSolver
Method Name: _randtobest1exp