Skip to content

Conversation

@rodriguez-facundo
Copy link
Contributor

@rodriguez-facundo rodriguez-facundo commented Jul 2, 2018

this requires:
suny-downstate-medical-center/netpyne#329
openworm/org.geppetto.frontend#814

This function checks if the string can be evaluated as function

@rodriguez-facundo
Copy link
Contributor Author

To test:

go to convergence, divergence or probability in connParams and try to enter any equation:

valid expressions:

"pre_x", "pre_y", "pre_z", "post_x", "post_y", "post_z", "dist_x", "dist_y", "dist_z", "pre_xnorm", "pre_ynorm", "pre_znorm", "post_xnorm", "post_ynorm", "post_znorm", "dist_xnorm", "dist_ynorm", "dist_znorm", "dist_3D", "dist_3D_border", "dist_2D", "dist_norm3D", "dist_norm2D"

['binomial', 'discunif', 'erlang', 'geometric', 'hypergeo', 'lognormal', 'negexp', 'normal', 'poisson', 'uniform', 'weibull']

and all the netpyne variables...

So, something like: 20*uniform(1,7)*pre_x would be valid

@adrianq adrianq merged commit d5ad650 into development Jul 4, 2018
@rodriguez-facundo rodriguez-facundo deleted the feature/input_function_string branch July 10, 2018 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants