Skip to content

Commit

Permalink
Merge pull request #62 from the-virtual-brain/dev
Browse files Browse the repository at this point in the history
HBP-206 Improve examples
  • Loading branch information
dionperd authored Nov 7, 2022
2 parents cbc46bd + 07d238e commit a58fa90
Show file tree
Hide file tree
Showing 10 changed files with 317 additions and 39,328 deletions.
8 changes: 5 additions & 3 deletions examples/notebooks/pyspike_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import pyspike as spk\n",
"import os\n",
"\n",
"data_path = os.path.expanduser(\"~/packages/PySpike/test/PySpike_testdata.txt\")\n",
"spike_trains = spk.load_spike_trains_from_txt(data_path, edges=(0, 4000))\n",
"\n",
"spike_trains = spk.load_spike_trains_from_txt(\"/home/docker/packages/PySpike/test/PySpike_testdata.txt\",\n",
" edges=(0, 4000))\n",
"n_spike_trains = len(spike_trains)\n",
"y_max = n_spike_trains\n",
"plt.figure(figsize=(20, 10))\n",
Expand Down Expand Up @@ -89,7 +91,7 @@
}
],
"source": [
"spike_trains = spk.load_spike_trains_from_txt(\"/home/docker/packages/PySpike/test/PySpike_testdata.txt\", 4000)\n",
"spike_trains = spk.load_spike_trains_from_txt(data_path, 4000)\n",
"\n",
"plt.figure()\n",
"isi_distance = spk.isi_distance_matrix(spike_trains)\n",
Expand Down

Large diffs are not rendered by default.

514 changes: 256 additions & 258 deletions examples/tvb_annarchy/notebooks/ANNarchy-spiking-cortex.ipynb

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions examples/tvb_annarchy/notebooks/TVB-corr-cortex-opt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
"from tvb_multiscale.tvb_annarchy.config import *\n",
"\n",
"work_path = os.getcwd()\n",
"data_path = os.path.join(work_path.split(\"tvb_annarchy\")[0], \"data/basal_ganglia\")\n",
"# data_path = os.path.join(work_path.split(\"packages\")[0], \n",
"# \"packages/tvb-multiscale/examples/data/basal_ganglia\")\n",
"data_path = os.path.expanduser(\"~/packages/tvb-multiscale/examples/data/basal_ganglia\")\n",
"fit_data_path = os.path.join(data_path, \"ANNarchyFittedModels/dataFits_2020_02_05/databestfits\", )\n",
"data_mode = \"patient\" # \"control\", \"patient\"\n",
"control_data = os.path.join(fit_data_path, \"controlleft/OutputSim_Patient08.mat\")\n",
Expand Down
Empty file.
2,575 changes: 0 additions & 2,575 deletions examples/tvb_nest/notebooks/cerebellum/CerebWilsonCowanTVBonly.ipynb

This file was deleted.

4,216 changes: 0 additions & 4,216 deletions examples/tvb_nest/notebooks/cerebellum/CerebWilsonCowanTVBonly_Griffiths.ipynb

This file was deleted.

11,970 changes: 0 additions & 11,970 deletions examples/tvb_nest/notebooks/cerebellum/cereb.ipynb

This file was deleted.

10,942 changes: 0 additions & 10,942 deletions examples/tvb_nest/notebooks/cerebellum/cereb_no_nest_builders.ipynb

This file was deleted.

9,129 changes: 0 additions & 9,129 deletions examples/tvb_nest/notebooks/cerebellum/olivocerebellum_sim.ipynb

This file was deleted.

0 comments on commit a58fa90

Please sign in to comment.