NeuronEQ
Project description
neuroneq
A GUI-based python tool to visualize equations used in simulated neurons.
Code example
Easily convert from alpha/beta to tau/inf
import matplotlib.pyplot as plt
from neuroneq import ab2inf_tau, fit_inf
import numpy as np
alpha = "((v+45)/10)/(1-exp(-(v+45)/10))"
beta = "4*exp(-(v+70)/18)"
# convert to inf, tau
inf, tau = ab2inf_tau(alpha,beta)
# fit the equation to standard form
fit_equation = fit_inf(inf)
print(fit_equation)
# 1.0/(1.0+(exp((v+44.57)/(-9.55))))
# plot
min_v, max_v = -100, 50
v = np.linspace(float(min_v),float(max_v),2000)
fit_equation_np = fit_equation.replace("exp(","np.exp(")
y = eval(fit_equation_np)
plt.plot(v, y, 'r-',label="fit")
plt.show()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
neuroneq-0.0.6.tar.gz
(11.3 kB
view details)
Built Distribution
neuroneq-0.0.6-py3-none-any.whl
(11.7 kB
view details)
File details
Details for the file neuroneq-0.0.6.tar.gz
.
File metadata
- Download URL: neuroneq-0.0.6.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b356ca1d3e61336651c48b77bcadb5178e1ab0173be34036342c20a36d1bc3a |
|
MD5 | a4cb3906c61e549c2277d3507b8589fb |
|
BLAKE2b-256 | be3743db98375953b4f29f6f449489949ae46d09fe6b9747883c53a9f25d559e |
File details
Details for the file neuroneq-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: neuroneq-0.0.6-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cce361a09bc0f7b2c140eb76aa004024528088ad16a1f57a50bf1fbe973e380c |
|
MD5 | 87b232ae63aa070d83e0090ef4fb259a |
|
BLAKE2b-256 | a79cdc166e9a93f39c0af480e48d3777cfa2c27f4f387daa2685c3925d203788 |