AN model is a conductance-based (Hodgkin-Huxley type) neuron model using the mean-field approximation of groups of neurons. The model can recapitulate the slow-wave sleep (SWS) firing pattern and the sleep spindle (SS) firing pattern.
The following packages need to be installed to use AN model:
- Python >= 3.5
- Numpy >= 1.10
- Scipy >= 1.0.0
import matplotlib.pyplot as plt
import anmodel
an = anmodel.models.ANmodel()
an.set_sws_params()
s, _ = an.run_odeint()
plt.plot(s[4999:, 0])
This project is licensed under the MIT License - see the LICENSE.txt file for details.