def send_nest_params_to_sli(p):
for name in list(p.keys()):<EOL><INDENT>value = p[name]<EOL>if type(value) == numpy.ndarray:<EOL><INDENT>value = value.tolist()<EOL><DEDENT>if type(value) == dict:<EOL><INDENT>value = dict_of_numpyarray_to_dict_of_list(value)<EOL><DEDENT>if name == '<STR_LIT>': <EOL><INDENT>try:<EOL><INDENT>nest.sli_run('<STR_LIT:/>'+name)<EOL>nest.sli_push(value)<EOL>nest.sli_run('<STR_LIT>')<EOL>nest.sli_run('<STR_LIT>')<EOL><DEDENT>except: <EOL><INDENT>print('<STR_LIT>' % (name))<EOL>print(type(value))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>nest.sli_run('<STR_LIT:/>'+name)<EOL>nest.sli_push(value)<EOL>nest.sli_run('<STR_LIT>')<EOL><DEDENT>except: <EOL><INDENT>print('<STR_LIT>' % (name))<EOL>print(type(value))<EOL><DEDENT><DEDENT><DEDENT>return<EOL>
Read parameters and send them to SLI