You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How should we deal with Pumps? Currently, they are separate from the Channel. We could also merge them and have something like self.ion_name=None (or self.ion_name = "v") for Channel`s.
Currently, we define self.pumps and self.pumped_ions. As @jnsbck suggested, we could also define self.pumps = {"ion_name": [pump1, pump2]}. If we merge Pumps and Channels, we could even have:
I would still opt to have Pump even if Pump is just class Pump(Channel) (or class Pump(Mechanism) see #474 (comment)) and calls super().__init__(self,...).
I like keeping mechanisms in one place, with self.mechanisms, in this case we'd have to incl. synapses as well. Possible would also be self.mechanisms = {"synapses": {}, "pumps": {}, "channels": {}}
I find self.ion_name=None/v, confusing. In that case Id rename it to modified_state/affectsor sth., but it would be nice to have this be an attr ofMechanism` and therefore all child mechanisms. The more unified we can make this, the easier it will probably be to handle this in the backend, the more room for optimizations etc. there will be.
Follow-up to #438
How should we deal with
Pump
s? Currently, they are separate from theChannel
. We could also merge them and have something likeself.ion_name=None
(orself.ion_name = "v") for
Channel`s.Currently, we define
self.pumps
andself.pumped_ions
. As @jnsbck suggested, we could also defineself.pumps = {"ion_name": [pump1, pump2]}
. If we mergePump
s andChannel
s, we could even have:A downside of this is that
Pump
, we lose the opportunity to write explicit docstrings that explain what aPump
isPump
and aChannel
differ in their units and in the fact thatchannel
s get the current divided by the capacitance.A final option would be to only go for the
dict
representation forPump
s. This has the downside that:self.channels + self.pumps
But it has the big advantage of having only one attribute (get rid of
self.pumped_ions
)The text was updated successfully, but these errors were encountered: