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

Make all gates staticmethods of the channel classes #231

Merged
merged 5 commits into from
Feb 3, 2024
Merged

Conversation

michaeldeistler
Copy link
Contributor

@michaeldeistler michaeldeistler commented Feb 3, 2024

Allow initializing channels at their steady state.

  • Moves all gate functions into the class itself (e.g. m_gate() is now within the Na channel)
  • Introduce init_state() method for all channels
  • remove NaK channel of Pospischil; use Na and K separately

This PR allows to initialize all channels in their steady state:

cell = jx.Cell(...)
cell.set("voltages", -60.0)
cell.init_states()

@michaeldeistler michaeldeistler merged commit 381ce4a into main Feb 3, 2024
1 check passed
@michaeldeistler michaeldeistler deleted the channel branch February 3, 2024 15:10
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.

1 participant