From 157d4290c49c7a2228f9a59a80b02749ba297eb2 Mon Sep 17 00:00:00 2001 From: Matteo Visconti di Oleggio Castello Date: Tue, 3 Oct 2023 14:32:41 -0700 Subject: [PATCH] FIX update URL of retinotopy dataset (#499) --- examples/quickstart/plot_retinotopy_flatmap.py | 8 +++++--- examples/quickstart/retinotopy_webgl.py | 13 ++++++------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/examples/quickstart/plot_retinotopy_flatmap.py b/examples/quickstart/plot_retinotopy_flatmap.py index 348afeb7e..332b642e7 100644 --- a/examples/quickstart/plot_retinotopy_flatmap.py +++ b/examples/quickstart/plot_retinotopy_flatmap.py @@ -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, @@ -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 diff --git a/examples/quickstart/retinotopy_webgl.py b/examples/quickstart/retinotopy_webgl.py index 6cbe32fa6..167a07c5f 100644 --- a/examples/quickstart/retinotopy_webgl.py +++ b/examples/quickstart/retinotopy_webgl.py @@ -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. @@ -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