project-rig / rig

A collection of tools for developing SpiNNaker applications.
GNU General Public License v2.0
4 stars 0 forks source link

Fix accidental-broadcast in circuit simulator example. #253

Closed mossblaser closed 8 years ago

mossblaser commented 8 years ago

A classic Python beginner's error: defining a function with a default argument set to an empty list. As a result, every Wire created is connected to every input in the circuit. How embarrassing.

For small circuits this bug doesn't break anything since gates ignore packets with unrecognised keys (hence not being spotted earlier) but for larger circuits you get dreadful network contention...

mundya commented 8 years ago

RIgged