elephant.asset.asset.get_neurons_in_sse¶
- elephant.asset.asset.get_neurons_in_sse(sse)[source]¶
Returns the IDs of all neurons present in the SSE pattern.
This ignores repetitions (i.e., if a neuron is present in more than one pixel, it is returned only once).
- Parameters:
- ssedict
Dictionary of pixel positions (i, j) as keys and sets S of synchronous events as values, as returned by
ASSET.extract_synchronous_events()
.
- Returns:
- list
All neuron IDs present in the SSE, sorted in ascending order.
See also
Examples
>>> sse = {(268, 51): {22, 27}, ... (274, 54): {26}, ... (274, 56): {77}, ... (274, 58): {26}, ... (275, 58): {92}, ... (276, 59): {9}, ... (277, 58): {26}, ... (277, 61): {26}} >>> neurons = get_neurons_in_sse(sse) >>> print(neurons) [9, 22, 26, 27, 77, 92]