openworm / CElegansNeuroML

NeuroML based C elegans model, contained in a neuroConstruct project, as well as c302
http://opensourcebrain.org/projects/celegans
134 stars 51 forks source link

conn_number_override issue - AttributeError GradedSynapse.gbase #73

Closed lungd closed 7 years ago

lungd commented 7 years ago

Hi guys,

I am working on the tap withdrawal circuit which overrides some connections (conn_number_override). The problem is that the synapses can be of type GradedSynapse so there is no syn0.gbase at line: https://github.com/openworm/CElegansNeuroML/blob/master/CElegans/pythonScripts/c302/c302.py#L690

But there is a syn0.conductance so I guess there should be a isinstance() check?

Best, David

pgleeson commented 7 years ago

Hi @lungd, good catch, I hadn't tested conn_number_override with the more recent parameter sets. This should be fixed in the latest commit.