apparently, adding structure='dense' at the connection creation solves the problem (difference between STDP1.py and STDP2.py in the examples)