Skip to content

Commit

Permalink
Merge branch 'main' of github.com:mackelab/labproject into main
Browse files Browse the repository at this point in the history
  • Loading branch information
augustes committed Feb 11, 2024
2 parents b2f631f + 2d6bea9 commit 5d78912
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 45 deletions.
70 changes: 38 additions & 32 deletions docs/notebooks/application1_copy.ipynb

Large diffs are not rendered by default.

Binary file modified docs/notebooks/distances_violin.pdf
Binary file not shown.
22 changes: 11 additions & 11 deletions labproject/ddm_basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 91,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -32,7 +32,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 92,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 93,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -171,7 +171,7 @@
"[6148 rows x 4 columns]"
]
},
"execution_count": 3,
"execution_count": 93,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -192,7 +192,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 94,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -226,7 +226,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 95,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -243,14 +243,14 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 96,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Info: Params [ 2.16533471 -11.81124181 0.81819066 1.07893973 0.14297845] gave 98.07763681783106\n"
"Info: Params [ 2.50225873 -19.87853757 0.61999986 0.85736089 0.16312348] gave 108.65103566473294\n"
]
}
],
Expand All @@ -273,7 +273,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 97,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -283,7 +283,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 98,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -298,7 +298,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 99,
"metadata": {},
"outputs": [],
"source": [
Expand Down
4 changes: 2 additions & 2 deletions labproject/roitman_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def filter_roitman_data(
"""

# extract values
#rt = df[(df["animal"] == animal) & (df["coherence"] == coherence)]["rt"].values / 1000
rt = df[(df["animal"] == animal) & (df["coherence"] == coherence)]["rt"].values / 1000
rt = df[(df["coherence"] == coherence)]["rt"].values / 1000

#decision = df[(df["animal"] == animal) & (df["coherence"] == coherence)]["decision"].values
decision = df[(df["animal"] == animal) & (df["coherence"] == coherence)]["decision"].values
decision = df[ (df["coherence"] == coherence)]["decision"].values

if n_trial == "all":
Expand Down

0 comments on commit 5d78912

Please sign in to comment.