Skip to content

Commit

Permalink
FIX update URL of retinotopy dataset (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdoc authored Oct 3, 2023
1 parent aae0847 commit 157d429
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
8 changes: 5 additions & 3 deletions examples/quickstart/plot_retinotopy_flatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
command that is included.
.. _dataset: http://gallantlab.org/pycortex/S1_retinotopy.hdf
.. _dataset: https://s3.us-west-1.wasabisys.com/glab-public-datasets/S1_retinotopy.hdf
S1 is the example subject that comes with pycortex, but if you want to plot
data onto a different subject, you will need to have them in your filestore,
Expand All @@ -21,8 +21,10 @@


# Download the dataset and load it
_ = urlretrieve("http://gallantlab.org/pycortex/S1_retinotopy.hdf",
"S1_retinotopy.hdf")
_ = urlretrieve(
"https://s3.us-west-1.wasabisys.com/glab-public-datasets/S1_retinotopy.hdf",
"S1_retinotopy.hdf"
)
ret_data = cortex.load("S1_retinotopy.hdf")

# The retinotopy data has to be divided into left and right hemispheres
Expand Down
13 changes: 6 additions & 7 deletions examples/quickstart/retinotopy_webgl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
dataset_, but that can also be done automatically through the `urllib`
command that is included.
.. _dataset: http://gallantlab.org/pycortex/S1_retinotopy.hdf
.. _dataset: https://s3.us-west-1.wasabisys.com/glab-public-datasets/S1_retinotopy.hdf
S1 is the example subject that comes with pycortex, but if you want to plot
data onto a different subject, you will need to have them in your filestore.
Expand All @@ -21,15 +21,14 @@
"""

import cortex
try: # python 2
from urllib import urlretrieve
except ImportError: # python 3
from urllib.request import urlretrieve
from urllib.request import urlretrieve


# Download and load in retinotopy data
_ = urlretrieve("http://gallantlab.org/pycortex/S1_retinotopy.hdf",
"S1_retinotopy.hdf")
_ = urlretrieve(
"https://s3.us-west-1.wasabisys.com/glab-public-datasets/S1_retinotopy.hdf",
"S1_retinotopy.hdf"
)
ret_data = cortex.load("S1_retinotopy.hdf")

# Open the webviewer
Expand Down

0 comments on commit 157d429

Please sign in to comment.