sum_events of EventMonitor

21 views
Skip to first unread message

lut...@gmail.com

unread,
Feb 20, 2020, 1:39:31 AM2/20/20
to Brian Development
Hello,

I am trying to train an SNN and am getting the following error:

Traceback (most recent call last):
  File "Simulation.py", line 171, in <module>
    total_spikes = float(event_mon.sum_events)
  File "/usr/local/lib/python2.7/dist-packages/brian2/groups/group.py", line 398, in __getattr__
    raise AttributeError('No attribute with name ' + name)
AttributeError: No attribute with name sum_events

I am running Simulation.py from this git: https://github.com/ianvermeulen/memristor_simulations

Any idea?

Thanks!

AD 

Marcel Stimberg

unread,
Feb 20, 2020, 5:07:52 AM2/20/20
to brian-de...@googlegroups.com
Hi,

this is odd, the code tries to access an attribute "sum_events" in the
EventMonitor, but there is no attribute of that name (and there never
has been). It's probably supposed to say "num_events" – maybe some
search&replace that went wrong?

Best,

  Marcel


AD

unread,
Feb 20, 2020, 3:58:41 PM2/20/20
to Brian Development
Thanks Marcel! That was it, the network is working now. 

I am now trying to modify the equations to make the neurons behave like Morris Lecar. Thanks for your help.

Thanks!

AD
Reply all
Reply to author
Forward
0 new messages