pointprocess does not know its own type/name
Posted: Tue Aug 25, 2009 2:16 pm
Using I can get the name of p by access name attribute. But since neuron.new_point_process is becoming obsolete, from the correspondent usage
I cannot get the name (or type) of a (as an ExpSyn):
Strangely, "print a" gives
But redirect stdio doesn't work (doesn't give me a str 'ExpSyn[3]'), could HocObject, especially PointProcess object has an attribute that stores its own type/name?
Code: Select all
p = neuron.new_point_process('ExpSyn')
Code: Select all
a = h.ExpSyn(0.5, sec = dend))
nc = h.NetCon(stim, a)
Code: Select all
>> a.__str__()
>> '<hoc.HocObject object at 0x892bef8>'
>> a.__repr__()
>> '<hoc.HocObject object at 0x892bef8>'
Strangely, "print a" gives
Code: Select all
>> print a
ExpSyn[3]