Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Python classes as an option to define cell templates #81

Open
salvadord opened this issue Jan 17, 2019 · 1 comment
Open

Support Python classes as an option to define cell templates #81

salvadord opened this issue Jan 17, 2019 · 1 comment

Comments

@salvadord
Copy link

Some of the NEURON developers were surprised that Python classes were not supported as an option to define cell templates -- the preferred option for cell templates is now Python classes instead of hoc templates. See eg. tutorial https://neuron.yale.edu/neuron/static/docs/neuronpython/ballandstick2.html . Also, many models on ModelDB use Python classes for cell templates: https://senselab.med.yale.edu/ModelDB/ShowModel.cshtml?model=229585&file=/purkinjecell/Purkinje.py#tabs-2 , https://senselab.med.yale.edu/ModelDB/ShowModel.cshtml?model=195615&file=/spidemo/SPI6.py#tabs-2 , https://senselab.med.yale.edu/ModelDB/ShowModel.cshtml?model=237653&file=/Beskow/MSN_builder.py#tabs-2 , https://senselab.med.yale.edu/ModelDB/ShowModel.cshtml?model=225075&file=/HirataniFukai2018/libcell.py#tabs-2

@hernando
Copy link
Collaborator

hernando commented Jan 18, 2019

Is the solution as simple as adding an additional item to the specification of valid model_templates?
For example:

  • py: The template is Python file containing a NEURON Python class. Valid for both biophysical and single_compartment model types.

The question is: How dynamics_params can specify parameter overrides from the template in this case?

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

No branches or pull requests

2 participants