Skip to content
Snippets Groups Projects

Add Jupyter Notebook for EBRAINS with down-scaled MAM

Merged Didi Hou requested to merge github/fork/jhnnsnk/lab.ebrains.eu_nb into master

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

Approval is optional

Merged by Didi HouDidi Hou 2 years ago (Sep 16, 2022 8:14am UTC)

Merge details

  • Changes merged into master with 6d883048.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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"
  • Author Owner

    Created by: jarsi

    Here you set the number of neurons and indegrees to .5 %, but above you state you would set it to 1%. Changing either one should be fine. Looking at the memory consumption in the notebook it seems that .5% is the more reasonable choice.

  • Author Owner

    Created by: jhnnsnk

    Thanks for pointing me to this mistake. It is fixed now.

  • Author Owner

    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.

  • Author Owner

    Created by: jarsi

    Review: Approved

  • Author Owner

    Created by: jarsi

    Thanks for adding this new feature, I'll go ahead and merge.

  • Author Owner

    Merged by: jarsi at 2022-09-16 08:14:09 UTC

  • closed

  • Didi Hou merged manually

    merged manually

  • Please register or sign in to reply