[pydstool-users] Namespace for model
Status: Beta
Brought to you by:
robclewley
|
From: Daniel B. <dan...@gm...> - 2018-06-11 22:26:26
|
Hi all,
Say I have a model like this:
DSargs = dst.args(name='Decision_making_model')
DSargs.pars = {'nu': 0.1, # ms
'tau_i': 10} # ms
DSargs.fnspecs = {'g': (['r_e'], 'g_func(r_e)'),
'f': (['r_e', 'r_i'], 'f_func(r_e, r_i)')}
This code throws an error, because g_func and f_func are custom Python
functions. How do I get these functions in the namespace of the model?
(They are already defined in the namespace of the script where the model is
created and run.)
Thanks,
Dan
|