spynnaker8.utilities package

Submodules

spynnaker8.utilities.neo_convertor module

spynnaker8.utilities.neo_convertor.convert_analog_signal(signal_array, time_unit)[source]

Converts part of a NEO object into told spynnaker7 format

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:
  • signal_array (AnalogSignal) – Extended Quantities object
  • time_unit (quantities.unitquantity.UnitTime) – Data time unit for time index
Return type:

ndarray

spynnaker8.utilities.neo_convertor.convert_data(data, name, run=0)[source]

Converts the data into a numpy array in the format ID, time, value

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:
  • data (Block) – Data as returned by a getData() call
  • name (str) – Name of the data to be extracted. Same values as used in getData()
  • run (int) – Zero based index of the run to extract data for
Return type:

ndarray

spynnaker8.utilities.neo_convertor.convert_data_list(data, name, runs=None)[source]

Converts the data into a list of numpy arrays in the format ID, time, value

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:
  • data (Block) – Data as returned by a getData() call
  • name (str) – Name of the data to be extracted. Same values as used in getData()
  • runs (list(int) or None) – List of Zero based index of the run to extract data for. Or None to extract all runs
Return type:

list(ndarray)

spynnaker8.utilities.neo_convertor.convert_gsyn(gsyn_exc, gsyn_inh)[source]

Converts two neo objects into the spynnaker7 format

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:
  • gsyn_exc (Block) – neo with gsyn_exc data
  • gsyn_inh (Block) – neo with gsyn_exc data
Return type:

ndarray

spynnaker8.utilities.neo_convertor.convert_gsyn_exc_list(data, runs=None)[source]

Converts the gsyn_exc into a list numpy array one per segment (all runs) in the format ID, time, value

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:
  • data (Block) – The data to convert; it must have Gsyn_exc data in it
  • runs (list(int) or None) – List of Zero based index of the run to extract data for. Or None to extract all runs
Return type:

list(ndarray)

spynnaker8.utilities.neo_convertor.convert_gsyn_inh_list(data, runs=None)[source]

Converts the gsyn_inh into a list numpy array one per segment (all runs) in the format ID, time, value

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:
  • data (Block) – The data to convert; it must have Gsyn_inh data in it
  • runs (list(int) or None) – List of Zero based index of the run to extract data for. Or None to extract all runs
Return type:

list(ndarray)

spynnaker8.utilities.neo_convertor.convert_spikes(neo, run=0)[source]

Extracts the spikes for run one from a Neo Object

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:
  • neo (Block) – neo Object including Spike Data
  • run (int) – Zero based index of the run to extract data for
Return type:

ndarray

spynnaker8.utilities.neo_convertor.convert_spiketrains(spiketrains)[source]

Converts a list of spiketrains into spynnaker7 format

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:spiketrains (list(SpikeTrain)) – List of SpikeTrains
Return type:ndarray
spynnaker8.utilities.neo_convertor.convert_v_list(data, runs=None)[source]

Converts the voltage into a list numpy array one per segment (all runs) in the format ID, time, value

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:
  • data (Block) – The data to convert; it must have V data in it
  • runs (list(int) or None) – List of Zero based index of the run to extract data for. Or None to extract all runs
Return type:

list(ndarray)

spynnaker8.utilities.neo_convertor.count_spikes(neo)[source]

Help function to count the number of spikes in a list of spiketrains

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:neo (Block) – Neo Object which has spikes in it
Returns:The number of spikes in the first segment
spynnaker8.utilities.neo_convertor.count_spiketrains(spiketrains)[source]

Help function to count the number of spikes in a list of spiketrains

Deprecated since version 6.0: Use spynnaker.pyNN.utilities.neo_convertor instead.

Parameters:spiketrains (list(SpikeTrain)) – List of SpikeTrains
Returns:Total number of spikes in all the spiketrains
Return type:int

Module contents