Skip to content

Commit

Permalink
attempt to reduce disk space consumption of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
36000 committed Dec 7, 2020
1 parent 959a84e commit 204d70d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/plot_afq_callosal.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import plotly

from AFQ import api
from AFQ.mask import RoiMask
import AFQ.data as afd

##########################################################################
Expand All @@ -21,6 +22,20 @@

afd.organize_stanford_data()

##########################################################################
# Set tractography parameters (optional)
# ---------------------
# We make this tracking_params which we will pass to the AFQ object
# which specifies that we want 100,000 seeds randomly distributed
# in the ROIs of every bundle.
#
# We only do this to make this example faster and consume less space.

tracking_params = dict(seed_mask=RoiMask(),
n_seeds=10000,
random_seeds=True,
rng_seed=42)

##########################################################################
# Initialize an AFQ object:
# -------------------------
Expand Down
13 changes: 13 additions & 0 deletions examples/plot_afq_reco80.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@

afd.organize_stanford_data()

##########################################################################
# Set tractography parameters (optional)
# ---------------------
# We make this tracking_params which we will pass to the AFQ object
# which specifies that we want 50,000 seeds randomly distributed
# in the white matter.
#
# We only do this to make this example faster and consume less space.

tracking_params = dict(n_seeds=50000,
random_seeds=True,
rng_seed=42)

##########################################################################
# Initialize an AFQ object:
# -------------------------
Expand Down

0 comments on commit 204d70d

Please sign in to comment.