Repository for the paper titled Mutual Stabilization in Chaotic Hindmarsh–Rose Neurons by John E. Parker and Kevin M. Short, published in Dynamics, 2023. The open-access paper can be found here: https://doi.org/10.3390/dynamics3020017.
Please cite this work appropriately if used as a reference.
The results in this work and the code provided here are an extension of a previous publication from the same authors. As such, the details regarding the previous work can be found at the reference listed below:
- John E. Parker and Kevin M. Short, “Cupolets in a chaotic neuron model”, Chaos 32, 113104 (2022) https://doi.org/10.1063/5.0101667
Dependencies
All code was built using Python 3.11. We strongly advise using a virtual environment when running this code. Please see https://docs.python.org/3/library/venv.html on how to set up and activate virtual environment on your machine.
Once set up, to install the necessary Python modules please run:
$ pip install -r requirements.txt
You are now ready to run the code!
Repository Overview
This repository has has two subdirectories that are required for these scripts
The first is
paper_data
which holds all the previous published data (2022 paper) and where data from simulations will be stored.The second is
paper_figures
which conatins all figures generatedgenerate_graphics.py
(see Figure Generation section).All other files are for generation of the figures or analysis of the simulations. The code is largely commented however if questions arise please direct these to the corresponding author.
Figure Generation
This section states how to recreate each of the figures in the manuscript. Figure 1, Figure 2, and Figure 3 are all reprouced from the 2022 publication listed above.Figures are generated with the
generate_graphics.py
script called from the command line using the flag-f
followed by a list of desired figures (4,5.., etc).For example, to generate all the figures run the following on the command line:
$ python generate_graphics.py -f 4 5 6 7
Please contact the corresponding author regarding questions involving this work. The contact information can be found in the manuscript.