From e3d43fe4107f5b2edaa69ecf08115fc29ba97b98 Mon Sep 17 00:00:00 2001 From: Ariel Rokem Date: Thu, 7 Nov 2024 12:16:39 -0800 Subject: [PATCH] We'll download data as script. --- binder/postBuild | 1 - content/download_data.py | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) delete mode 100644 binder/postBuild create mode 100644 content/download_data.py diff --git a/binder/postBuild b/binder/postBuild deleted file mode 100644 index de88748..0000000 --- a/binder/postBuild +++ /dev/null @@ -1 +0,0 @@ -python -c"import AFQ.data.fetch as afd; afd.organize_stanford_data(clear_previous_afq='track')" diff --git a/content/download_data.py b/content/download_data.py new file mode 100644 index 0000000..d01691b --- /dev/null +++ b/content/download_data.py @@ -0,0 +1,17 @@ + +# Set environment to point to local data directory for + +import os +import os.path as op +pwd = os.getcwd() +os.environ["DIPY_HOME"] = op.join(pwd, "..", "data", "tractometry") +os.environ["AFQ_HOME"] = op.join(pwd, "..", "data", "tractometry") + +# Stanford HARDI +import AFQ.data.fetch as afd +afd.organize_stanford_data() + +# Templates: +afd.fetch_templates() +afd.fetch_pediatric_templates() +