Skip to content

Commit 374ea95

Browse files
committed
cast float
1 parent 9fd22d8 commit 374ea95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spynnaker/pyNN/models/neuron/synaptic_matrices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def __write_synapse_expander_data_spec(
441441
# if converted to an int, so we use U3232 here instead (as there
442442
# can be scales larger than U1616.max in conductance-based models)
443443
dtype = DataType.U3232
444-
spec.write_value(data=float(min(dtype.max, float(w))),
444+
spec.write_value(data=float(min(dtype.max, cast(float, w))),
445445
data_type=dtype)
446446

447447
spec.write_array(self.__generated_data)

0 commit comments

Comments
 (0)