Skip to content

Commit

Permalink
Renamed example folder to examples (#83)
Browse files Browse the repository at this point in the history
* fixes to present version of NYHeadModel code

* renamed folder example > examples

* prep examples for mybinder

* prep for mybinder

* add link button to mybinder
  • Loading branch information
espenhgn authored Oct 12, 2020
1 parent c848e1e commit 1c5f706
Show file tree
Hide file tree
Showing 14 changed files with 866 additions and 702 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Build Status
![Lintly flake8 checks](https://github.com/LFPy/lfpykit/workflows/Lintly%20flake8%20checks/badge.svg)
![Python application](https://github.com/LFPy/LFPykit/workflows/Python%20application/badge.svg)
[![Upload Python Package](https://github.com/LFPy/LFPykit/workflows/Upload%20Python%20Package/badge.svg)](https://pypi.org/project/LFPykit)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/LFPy/LFPykit.git/master)
[![License](http://img.shields.io/:license-GPLv3+-green.svg)](http://www.gnu.org/licenses/gpl-3.0.html)

Features
Expand Down
300 changes: 0 additions & 300 deletions example/Example_EEG_NYHead.ipynb

This file was deleted.

358 changes: 0 additions & 358 deletions example/LFPykit_demo.ipynb

This file was deleted.

324 changes: 324 additions & 0 deletions examples/Example_EEG_NYHead.ipynb

Large diffs are not rendered by default.

34 changes: 23 additions & 11 deletions example/Example_LFPy.ipynb → examples/Example_LFPy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,24 @@
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"## if running on mybinder or similar, uncomment and run the two following lines to install LFPy. \n",
"## Then restart the kernel.\n",
"#!conda install mpi4py -y\n",
"#!pip install -e git+https://github.com/LFPy/LFPy.git@2.2.dev0#egg=LFPy"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/Users/ehagen/Repositories/LFPykit/example\n",
"/Users/ehagen/Repositories/LFPykit/examples\n",
"sinsyn.mod\n",
"sinsyn.mod\n",
"\"/Users/ehagen/anaconda3/envs/lfpy/share/nrn/libtool\" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I\"/Users/ehagen/anaconda3/envs/lfpy/include/nrn\" -I\"/Users/ehagen/anaconda3/envs/lfpy/lib\" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -isystem /Users/ehagen/anaconda3/envs/lfpy/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/ehagen/anaconda3/envs/lfpy/include -fdebug-prefix-map=/usr/local/miniconda/conda-bld/neuron_1579771171236/work=/usr/local/src/conda/neuron-7.7.2 -fdebug-prefix-map=/Users/ehagen/anaconda3/envs/lfpy=/usr/local/src/conda-prefix -c -o mod_func.lo mod_func.c\n",
Expand All @@ -51,7 +63,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -66,7 +78,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -75,7 +87,7 @@
"1.0"
]
},
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -105,7 +117,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -129,7 +141,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -142,7 +154,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -164,7 +176,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -180,7 +192,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -210,7 +222,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand All @@ -219,7 +231,7 @@
"Text(0.5, 0, '$t$ (ms)')"
]
},
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
},
Expand Down
22 changes: 17 additions & 5 deletions example/Example_LFPy_MEG.ipynb → examples/Example_LFPy_MEG.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"## if running on mybinder or similar, uncomment and run the two following lines to install LFPy. \n",
"## Then restart the kernel.\n",
"#!conda install mpi4py -y\n",
"#!pip install -e git+https://github.com/LFPy/LFPy.git@2.2.dev0#egg=LFPy"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"import LFPy, os, numpy as np, matplotlib.pyplot as plt\n",
"from matplotlib.gridspec import GridSpec\n",
Expand All @@ -31,7 +43,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -55,7 +67,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -77,16 +89,16 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x10e897610>"
"<matplotlib.legend.Legend at 0x13e61a6a0>"
]
},
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,24 @@
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"## if running on mybinder or similar, uncomment and run the two following lines to install LFPy. \n",
"## Then restart the kernel.\n",
"#!conda install mpi4py -y\n",
"#!pip install -e git+https://github.com/LFPy/LFPy.git@2.2.dev0#egg=LFPy"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/Users/ehagen/Repositories/LFPykit/example\n",
"/Users/ehagen/Repositories/LFPykit/examples\n",
"sinsyn.mod\n",
"sinsyn.mod\n",
"\"/Users/ehagen/anaconda3/envs/lfpy/share/nrn/libtool\" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I\"/Users/ehagen/anaconda3/envs/lfpy/include/nrn\" -I\"/Users/ehagen/anaconda3/envs/lfpy/lib\" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -isystem /Users/ehagen/anaconda3/envs/lfpy/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/ehagen/anaconda3/envs/lfpy/include -fdebug-prefix-map=/usr/local/miniconda/conda-bld/neuron_1579771171236/work=/usr/local/src/conda/neuron-7.7.2 -fdebug-prefix-map=/Users/ehagen/anaconda3/envs/lfpy=/usr/local/src/conda-prefix -c -o mod_func.lo mod_func.c\n",
Expand All @@ -56,7 +68,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -73,7 +85,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -122,7 +134,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -141,7 +153,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -168,7 +180,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -254,7 +266,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -269,7 +281,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"## if running on mybinder or similar, uncomment and run the two following lines to install LFPy. \n",
"## Then restart the kernel.\n",
"#!conda install mpi4py -y\n",
"#!pip install -e git+https://github.com/LFPy/LFPy.git@2.2.dev0#egg=LFPy"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import neuron\n",
Expand All @@ -41,7 +53,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -68,7 +80,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -78,7 +90,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -87,7 +99,7 @@
"1.0"
]
},
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -129,7 +141,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -160,7 +172,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -180,7 +192,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -206,7 +218,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -242,7 +254,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand Down
Loading

0 comments on commit 1c5f706

Please sign in to comment.