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

step/pulse current injection shape on HH_model. #152

Open
russelljjarvis opened this issue May 1, 2020 · 3 comments
Open

step/pulse current injection shape on HH_model. #152

russelljjarvis opened this issue May 1, 2020 · 3 comments

Comments

@russelljjarvis
Copy link

russelljjarvis commented May 1, 2020

Is it possible to run the HH model with a pulse shaped current injection and what would be the syntax for doing that? I am thinking it might be possible to break the simulation into three different regimes (or simulations). For the first time block the current injection=0pA and that should be trivial. the subsequent two time blocks do not depend on the first result. It's only the third time block that is hard as it depends on the second time block. Would it be normal to somehow get the final states of the neuron in the second block, and somehow use these as initial conditions for the third time block.

@russelljjarvis
Copy link
Author

It looks like this tutorial explains how to make a random sinusoidal input by using sympy functions. https://pydstool.github.io/PyDSTool/Tutorial/Tutorial_compneuro.html. I think the trick will be figuring out how to make a step function in sympy using piecewise.

@robclewley
Copy link
Owner

robclewley commented May 4, 2020 via email

@russelljjarvis russelljjarvis changed the title pulse current injection shape on HH_model. step/pulse current injection shape on HH_model. May 4, 2020
@russelljjarvis
Copy link
Author

russelljjarvis commented May 4, 2020

Hi @robclewley, thanks for your helpful comments and suggestions. It sounds like it could be a lot of work to implement all of this. Conceptually the current source I intend to model is an applied electrode current. I think you are implying, it does not matter in terms of the underlying equations if the current source is ionic, or electron-based, however, building in the square wave current injection could take more time than I have.

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