Add Jupyter Notebook for EBRAINS with down-scaled MAM
Created by: jhnnsnk
The notebook illustrates the simulation workflow with a down-scaled version of the multi-area model.
It is based on a draft by @terhorstd.
I have added the functionality to write a custom config.py
from within the notebook such that no additional files are necessary.
Besides, I have computed the instantaneous firing rates from the spike data and plotted them. Please check if the calculation is correct. Currently the mean-field prediction gives about 30 spikes / s and the simulation about 17 spikes / s and I am not sure if this discrepancy is expected.
I have also added some documentation on running the notebook in the Jupyter Lab on EBRAINS.
On EBRAINS the SLN fit failed due to an IndexError, but locally on my laptop it worked; so I assume that it is an issue with some Python package version. I have added the IndexError to the exception such that if it occurs the hard-coded fit parameters are used in the same way as when R is not available for calculation.
Merge request reports
Activity
73 "source": [ 74 "Neurons and indegrees are both scaled down to 1%.\n", 75 "Can usually be simulated on a local machine.\n", 76 "\n", 77 "**Warning: This will not yield reasonable dynamical results from the\n", 78 "network and is only meant to demonstrate the simulation workflow.**" 79 ] 80 }, 81 { 82 "cell_type": "code", 83 "execution_count": null, 84 "id": "e940bb6b", 85 "metadata": {}, 86 "outputs": [], 87 "source": [ 88 "scale_down_to = 0.005" Created by: jarsi
Review: Changes requested
Thanks for doing this! I followed your explanation and ran it on the collab. It worked and ran really smoothly. Besides a small inconsistency in
scale_down_to
all looks nice.In a future iteration one could enhance the analysis a bit, e.g. show how to extract spikes that belong to an area and plot them in a population resolved rasterplot.