Skip to content

Commit

Permalink
messing around with bifurcation analysis, sLORETA, finished spectral …
Browse files Browse the repository at this point in the history
…analysis
  • Loading branch information
MetaverseCrowdsource committed Aug 9, 2023
1 parent 8dd0ab1 commit 88e87d5
Show file tree
Hide file tree
Showing 11 changed files with 6,169 additions and 3,406 deletions.
514 changes: 0 additions & 514 deletions .ipynb_checkpoints/Bifurcation Analysis-checkpoint.ipynb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@
"execution_count": 2,
"id": "f3abfd51-c111-42f3-9ea4-c017fc1f6e30",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/vincent/miniconda3/lib/python3.10/site-packages/antropy/fractal.py:197: NumbaDeprecationWarning: \u001b[1mThe 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.\u001b[0m\n",
" @jit((types.Array(types.float64, 1, \"C\", readonly=True), types.int32))\n"
]
}
],
"source": [
"import numpy as np\n",
"import nolds\n",
Expand Down Expand Up @@ -46,7 +55,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"id": "bc64aca4-ae85-4599-8d78-ec9c147f9362",
"metadata": {
"tags": []
Expand Down Expand Up @@ -142,7 +151,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 4,
"id": "2e9b777a-1875-4fed-9879-2c90eea896f1",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -235,10 +244,10 @@
"</svg>\n"
],
"text/plain": [
"<graphviz.sources.Source at 0x7faf172704c0>"
"<graphviz.sources.Source at 0x7fab34746620>"
]
},
"execution_count": 13,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -271,7 +280,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 5,
"id": "36ae53a4-fab6-4393-92bb-fcbbf415aa0b",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -390,7 +399,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 6,
"id": "370695e1-1312-4ae2-b5d7-d8454add55b5",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -478,6 +487,39 @@
"print(eeg_df.tail())"
]
},
{
"cell_type": "markdown",
"id": "070ef93a-0e51-449c-b27d-974d07593915",
"metadata": {},
"source": [
"# Make the eeg df a npy"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "6cccb986-4630-4cf7-abb8-18b5c320863a",
"metadata": {},
"outputs": [],
"source": [
"# Extract EEG channel names (excluding 'Time')\n",
"eeg_channel_names = eeg_df.columns[:-1]\n",
"\n",
"# Create a dictionary to store EEG data for each channel\n",
"eeg_data_dict = {}\n",
"\n",
"# Populate the dictionary with EEG data\n",
"for channel in eeg_channel_names:\n",
" eeg_data_dict[channel] = eeg_df[channel].values\n",
"\n",
"# Convert the dictionary values to a numpy array\n",
"eeg_data_array = np.array([eeg_data_dict[channel] for channel in eeg_channel_names]).T\n",
"\n",
"# Save the numpy array with EEG data as a single .npy file\n",
"save_path = '/home/vincent/AAA_projects/MVCS/Neuroscience/eeg_data_with_channels.npy'\n",
"np.save(save_path, eeg_data_array)"
]
},
{
"cell_type": "code",
"execution_count": 17,
Expand Down Expand Up @@ -1629,7 +1671,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down
615 changes: 609 additions & 6 deletions .ipynb_checkpoints/PyCoBi Bifurcation with Auto-07p-checkpoint.ipynb

Large diffs are not rendered by default.

3,306 changes: 2,477 additions & 829 deletions .ipynb_checkpoints/Spectral Analysis-checkpoint.ipynb

Large diffs are not rendered by default.

458 changes: 147 additions & 311 deletions .ipynb_checkpoints/Visualization-checkpoint.ipynb

Large diffs are not rendered by default.

514 changes: 0 additions & 514 deletions Bifurcation Analysis.ipynb

This file was deleted.

56 changes: 49 additions & 7 deletions Data Loading and Variable Assigning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@
"execution_count": 2,
"id": "f3abfd51-c111-42f3-9ea4-c017fc1f6e30",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/vincent/miniconda3/lib/python3.10/site-packages/antropy/fractal.py:197: NumbaDeprecationWarning: \u001b[1mThe 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.\u001b[0m\n",
" @jit((types.Array(types.float64, 1, \"C\", readonly=True), types.int32))\n"
]
}
],
"source": [
"import numpy as np\n",
"import nolds\n",
Expand Down Expand Up @@ -46,7 +55,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"id": "bc64aca4-ae85-4599-8d78-ec9c147f9362",
"metadata": {
"tags": []
Expand Down Expand Up @@ -142,7 +151,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 4,
"id": "2e9b777a-1875-4fed-9879-2c90eea896f1",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -235,10 +244,10 @@
"</svg>\n"
],
"text/plain": [
"<graphviz.sources.Source at 0x7faf172704c0>"
"<graphviz.sources.Source at 0x7fab34746620>"
]
},
"execution_count": 13,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -271,7 +280,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 5,
"id": "36ae53a4-fab6-4393-92bb-fcbbf415aa0b",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -390,7 +399,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 6,
"id": "370695e1-1312-4ae2-b5d7-d8454add55b5",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -478,6 +487,39 @@
"print(eeg_df.tail())"
]
},
{
"cell_type": "markdown",
"id": "070ef93a-0e51-449c-b27d-974d07593915",
"metadata": {},
"source": [
"# Make the eeg df a npy"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "6cccb986-4630-4cf7-abb8-18b5c320863a",
"metadata": {},
"outputs": [],
"source": [
"# Extract EEG channel names (excluding 'Time')\n",
"eeg_channel_names = eeg_df.columns[:-1]\n",
"\n",
"# Create a dictionary to store EEG data for each channel\n",
"eeg_data_dict = {}\n",
"\n",
"# Populate the dictionary with EEG data\n",
"for channel in eeg_channel_names:\n",
" eeg_data_dict[channel] = eeg_df[channel].values\n",
"\n",
"# Convert the dictionary values to a numpy array\n",
"eeg_data_array = np.array([eeg_data_dict[channel] for channel in eeg_channel_names]).T\n",
"\n",
"# Save the numpy array with EEG data as a single .npy file\n",
"save_path = '/home/vincent/AAA_projects/MVCS/Neuroscience/eeg_data_with_channels.npy'\n",
"np.save(save_path, eeg_data_array)"
]
},
{
"cell_type": "code",
"execution_count": 17,
Expand Down
Loading

0 comments on commit 88e87d5

Please sign in to comment.