Metadata-Version: 2.1
Name: neuroneq
Version: 0.0.6
Summary: NeuronEQ
Home-page: https://github.com/tjbanks/neuroneq
Download-URL: 
Author: Tyler Banks
Author-email: tbanks@mail.missouri.edu
License: MIT
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# 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()

```
