def __init__(self, dt=None, clock=None, when="start", order=0, name="brianobject*"):
// Setup traceback information for this object
creation_stack = ["Object was created here (most recent call last):"]
brianbase, _ = os.path.split(os.path.normpath(os.path.join(__file__, "../..")))
for fname, linenum, funcname, line in traceback.extract_stack():
if brianbase not in fname:
s = " File "{fname}", line {linenum}, in {funcname}\n {line}".format(fname=fname,
After Change
base, _ = os.path.split(sys.modules[modulename].__file__)
bases.append(base)
for fname, linenum, funcname, line in traceback.extract_stack():
if all(base not in fname for base in bases):
s = " File "{fname}", line {linenum}, in {funcname}\n {line}".format(fname=fname,
linenum=linenum,
funcname=funcname,