Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Make bi-sided clustering default #331

Merged
merged 9 commits into from
Dec 16, 2019
6 changes: 3 additions & 3 deletions tedana/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def get_spectrum(data: np.array, tr: float = 1.0):


def threshold_map(img, min_cluster_size, threshold=None, mask=None,
binarize=True, sided='two'):
binarize=True, sided='bi'):
"""
Cluster-extent threshold and binarize image.

Expand All @@ -250,10 +250,10 @@ def threshold_map(img, min_cluster_size, threshold=None, mask=None,
Boolean array for masking resultant data array. Default is None.
binarize : bool, optional
Default is True.
sided : {'two', 'one', 'bi'}, optional
sided : {'bi', 'two', 'one'}, optional
How to apply thresholding. One-sided thresholds on the positive side.
Two-sided thresholds positive and negative values together. Bi-sided
thresholds positive and negative values separately. Default is 'two'.
thresholds positive and negative values separately. Default is 'bi'.
"""
tsalo marked this conversation as resolved.
Show resolved Hide resolved
if not isinstance(img, np.ndarray):
arr = img.get_data()
Expand Down