Skip to content

Commit d2b43af

Browse files
committed
MNT update notebooks
1 parent 1a2448f commit d2b43af

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

tutorials/notebooks/movies_3T/01_plot_explainable_variance.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
},
239239
"outputs": [],
240240
"source": [
241-
"surface = \"fsaverage\"\n\nif not hasattr(cortex.db, surface):\n cortex.utils.download_subject(subject_id=surface)"
241+
"surface = \"fsaverage\"\n\nif not hasattr(cortex.db, surface):\n cortex.utils.download_subject(subject_id=surface)\n # reinitialize pycortex's database to update available subjects\n filestore = cortex.options.config['basic']['filestore']\n cortex.database.db = cortex.database.Database(filestore)\n cortex.db = cortex.database.db\n cortex.utils.db = cortex.database.db\n cortex.dataset.braindata.db = cortex.database.db\n cortex.quickflat.utils.db = cortex.database.db\n cortex.quickflat.composite.db = cortex.database.db"
242242
]
243243
},
244244
{

tutorials/notebooks/movies_3T/merged_for_colab.ipynb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,15 @@
539539
"surface = \"fsaverage\"\n",
540540
"\n",
541541
"if not hasattr(cortex.db, surface):\n",
542-
" cortex.utils.download_subject(subject_id=surface)"
542+
" cortex.utils.download_subject(subject_id=surface)\n",
543+
" # reinitialize pycortex's database to update available subjects\n",
544+
" filestore = cortex.options.config['basic']['filestore']\n",
545+
" cortex.database.db = cortex.database.Database(filestore)\n",
546+
" cortex.db = cortex.database.db\n",
547+
" cortex.utils.db = cortex.database.db\n",
548+
" cortex.dataset.braindata.db = cortex.database.db\n",
549+
" cortex.quickflat.utils.db = cortex.database.db\n",
550+
" cortex.quickflat.composite.db = cortex.database.db"
543551
]
544552
},
545553
{

0 commit comments

Comments
 (0)