Following snippet loads a kinekit model and prints sources and destinations of each message:
~~~~~~~~~
import pylab
import moose
import numpy as np
modelFile = './stargazin_synapse.g'
modelPathInMoose = 'model'
method = 'old_gssa'
modelId = moose.loadModel(modelFile, modelPathInMoose, method)
msgs = moose.wildcardFind('/##[TYPE=OneToAllMsg]')
for m in msgs:
try: print m.e1
except: pass
try: print m.e2
except: pass
for m in msgs:
print m.e1, m.e2
~~~~~~~
Function Msg::getE1 in Msg.cpp cause seg-fault because data-member e1_ is a garbage value (sometimes NULL).
Anonymous
Probably
Eref::data()is returning NULLSeg-fault only on MsgType 'OneToAllMsg'. Msg 'OneToOne' are acting as expected.