|
@@ -365,9 +365,9 @@
|
|
" islands = isl_factory.generate_target(pt.hds) # island near the speaker\n",
|
|
" islands = isl_factory.generate_target(pt.hds) # island near the speaker\n",
|
|
" log_islands(islands) # log island(s) positions\n",
|
|
" log_islands(islands) # log island(s) positions\n",
|
|
" tgt = [i for i in islands if not i.is_distractor][0]\n",
|
|
" tgt = [i for i in islands if not i.is_distractor][0]\n",
|
|
- " log_event(c_time, round(tgt.x, 4), round(tgt.y, 4), round(tgt.r, 4), trial, 0)\n",
|
|
|
|
" phase = 1 # trial phase\n",
|
|
" phase = 1 # trial phase\n",
|
|
" trial += 1\n",
|
|
" trial += 1\n",
|
|
|
|
+ " log_event(c_time, round(tgt.x, 4), round(tgt.y, 4), round(tgt.r, 4), trial, 0)\n",
|
|
" iti_distance = 0\n",
|
|
" iti_distance = 0\n",
|
|
" phase_start = c_time\n",
|
|
" phase_start = c_time\n",
|
|
" target_since = None\n",
|
|
" target_since = None\n",
|
|
@@ -573,7 +573,7 @@
|
|
"\n",
|
|
"\n",
|
|
"# occupancy\n",
|
|
"# occupancy\n",
|
|
"sigma = 0.1\n",
|
|
"sigma = 0.1\n",
|
|
- "lin_profile = np.linspace(-15, 15, 20)\n",
|
|
|
|
|
|
+ "lin_profile = np.linspace(-15, 15, 20) \n",
|
|
"bump = np.exp(-sigma * lin_profile**2)\n",
|
|
"bump = np.exp(-sigma * lin_profile**2)\n",
|
|
"bump /= np.trapz(bump) # normalize to 1\n",
|
|
"bump /= np.trapz(bump) # normalize to 1\n",
|
|
"kernel = bump[:, np.newaxis] * bump[np.newaxis, :]\n",
|
|
"kernel = bump[:, np.newaxis] * bump[np.newaxis, :]\n",
|
|
@@ -697,7 +697,7 @@
|
|
],
|
|
],
|
|
"metadata": {
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"kernelspec": {
|
|
- "display_name": "Python 3",
|
|
|
|
|
|
+ "display_name": "Python 3 (ipykernel)",
|
|
"language": "python",
|
|
"language": "python",
|
|
"name": "python3"
|
|
"name": "python3"
|
|
},
|
|
},
|
|
@@ -711,7 +711,7 @@
|
|
"name": "python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"pygments_lexer": "ipython3",
|
|
- "version": "3.8.8"
|
|
|
|
|
|
+ "version": "3.8.13"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat": 4,
|