Skip to content

Commit

Permalink
max_nbytes str, buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Luessi committed Aug 1, 2013
1 parent d6d9686 commit 658b6ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions mne/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ def parallel_func(func, n_jobs, verbose=None, max_nbytes=None):
verbose : bool, str, int, or None
If not None, override default verbose level (see mne.verbose).
INFO or DEBUG will print parallel status, others will not.
max_nbytes int or None, optional
Threshold on the size in Bytes of arrays passed to the workers that
triggers automated memmory mapping. If None, memory sharing
is disabled.
max_nbytes int, str, or None
Threshold on the size of arrays passed to the workers that
triggers automated memmory mapping. Can be an int in Bytes,
or a human-readable string, e.g., '1M' for 1 megabyte.
Use None to disable memmaping of large arrays.
Returns
-------
parallel: instance of joblib.Parallel or list
Expand Down
8 changes: 4 additions & 4 deletions mne/stats/cluster_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ def permutation_cluster_test(X, threshold=None, n_permutations=1024,
connectivity=None, verbose=None, n_jobs=1,
seed=None, max_step=1, exclude=None,
step_down_p=0, t_power=1, out_type='mask',
check_disjoint=False, buffer_size=1000):
check_disjoint=False, buffer_size=500):
"""Cluster-level statistical permutation test
For a list of 2d-arrays of data, e.g. power values, calculate some
Expand Down Expand Up @@ -995,7 +995,7 @@ def permutation_cluster_1samp_test(X, threshold=None, n_permutations=1024,
connectivity=None, verbose=None, n_jobs=1,
seed=None, max_step=1, exclude=None,
step_down_p=0, t_power=1, out_type='mask',
check_disjoint=False, buffer_size=1000):
check_disjoint=False, buffer_size=500):
"""Non-parametric cluster-level 1 sample T-test
From a array of observations, e.g. signal amplitudes or power spectrum
Expand Down Expand Up @@ -1125,7 +1125,7 @@ def spatio_temporal_cluster_1samp_test(X, threshold=None,
n_permutations=1024, tail=0, stat_fun=ttest_1samp_no_p,
connectivity=None, verbose=None, n_jobs=1, seed=None, max_step=1,
spatial_exclude=None, step_down_p=0, t_power=1, out_type='indices',
check_disjoint=False, buffer_size=1000):
check_disjoint=False, buffer_size=500):
"""Non-parametric cluster-level 1 sample T-test for spatio-temporal data
This function provides a convenient wrapper for data organized in the form
Expand Down Expand Up @@ -1254,7 +1254,7 @@ def spatio_temporal_cluster_test(X, threshold=1.67,
n_permutations=1024, tail=0, stat_fun=f_oneway,
connectivity=None, verbose=None, n_jobs=1, seed=None, max_step=1,
spatial_exclude=None, step_down_p=0, t_power=1, out_type='indices',
check_disjoint=False, buffer_size=1000):
check_disjoint=False, buffer_size=500):
"""Non-parametric cluster-level test for spatio-temporal data
This function provides a convenient wrapper for data organized in the form
Expand Down

0 comments on commit 658b6ff

Please sign in to comment.