jaxleyverse / jaxley

Differentiable neuron simulations with biophysical detail on CPU, GPU, or TPU.
https://jaxley.readthedocs.io
Apache License 2.0
59 stars 9 forks source link

`cell.add_membrane_property()` #474

Open michaeldeistler opened 3 weeks ago

michaeldeistler commented 3 weeks ago
cell.add_membrane_property("e_k", -80.0)

then e_k can be accessed via params["e_k"].

jnsbck commented 3 weeks ago

I dont quite understand this. could you elaborate? :)

michaeldeistler commented 3 weeks ago

Ah, yes, I created this issue in a rush during a zoom meeting and forgot to add more details.

We got feedback that it is unintuitive that things like reversal potentials or temperature are channel_params. Instead, they should simply be a property of the membrane. I am not sure yet how to best implement this, but the above was my initial idea.