Skip to content

Commit 395a4a8

Browse files
committed
DOC fix update of pycortex's database
1 parent 3c7f6ac commit 395a4a8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tutorials/movies_3T/01_plot_explainable_variance.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,14 @@
198198

199199
if not hasattr(cortex.db, surface):
200200
cortex.utils.download_subject(subject_id=surface)
201+
# reinitialize pycortex's database to update available subjects
202+
filestore = cortex.options.config['basic']['filestore']
203+
cortex.database.db = cortex.database.Database(filestore)
204+
cortex.db = cortex.database.db
205+
cortex.utils.db = cortex.database.db
206+
cortex.dataset.braindata.db = cortex.database.db
207+
cortex.quickflat.utils.db = cortex.database.db
208+
cortex.quickflat.composite.db = cortex.database.db
201209

202210
###############################################################################
203211
# Then, we load the "fsaverage" mapper. The mapper is a matrix of shape

0 commit comments

Comments
 (0)