Skip to content

Commit 6348310

Browse files
committed
use max function
1 parent 5923f02 commit 6348310

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spynnaker/spynnaker_plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def heat_plot_numpy(axes: Axes, data: NDArray, label: str = '',
164164
neurons = data[:, 0].astype(numpy.uint32)
165165
times = data[:, 1].astype(numpy.uint32)
166166
values = data[:, 2]
167-
info_array = np.empty((max(neurons) + 1, max(times) + 1))
167+
info_array = np.empty((neurons.max() + 1, times.max() + 1))
168168
info_array[:] = np.nan
169169
info_array[neurons, times] = values
170170
_heat_plot(axes, info_array, label=label, **options)

0 commit comments

Comments
 (0)