From 5558de37293e22945a6b7db38fffa91533fae26c Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Tue, 7 May 2024 16:01:30 -0400 Subject: [PATCH] Keep fixing. --- src/fmripost_aroma/utils/features.py | 12 ++++++------ src/fmripost_aroma/utils/utils.py | 8 ++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/fmripost_aroma/utils/features.py b/src/fmripost_aroma/utils/features.py index a7912ee..93b4284 100644 --- a/src/fmripost_aroma/utils/features.py +++ b/src/fmripost_aroma/utils/features.py @@ -231,12 +231,12 @@ def feature_spatial(component_maps): 'LongName': 'CSF content fraction', 'Description': ( "The fraction of thresholded component z-values in the brain's cerebrospinal " - "fluid. " - "This is calculated by " - "(1) taking the absolute value of the thresholded Z map for each component, " - "(2) summing z-statistics from the whole brain, " - "(3) summing z-statistics from voxels in CSF compartments, and " - "(4) dividing the CSF z-statistic sum by the whole brain z-statistic sum." + 'fluid. ' + 'This is calculated by ' + '(1) taking the absolute value of the thresholded Z map for each component, ' + '(2) summing z-statistics from the whole brain, ' + '(3) summing z-statistics from voxels in CSF compartments, and ' + '(4) dividing the CSF z-statistic sum by the whole brain z-statistic sum.' ), 'Units': 'arbitrary', }, diff --git a/src/fmripost_aroma/utils/utils.py b/src/fmripost_aroma/utils/utils.py index 3164b20..cf3ed27 100644 --- a/src/fmripost_aroma/utils/utils.py +++ b/src/fmripost_aroma/utils/utils.py @@ -289,9 +289,7 @@ def motpars_spm2fsl(motpars): raise ValueError('Input must be an existing file or a numpy array.') if motpars.shape[1] != 6: - raise ValueError( - f'Motion parameters must have exactly 6 columns, not {motpars.shape[1]}.' - ) + raise ValueError(f'Motion parameters must have exactly 6 columns, not {motpars.shape[1]}.') # Split translations from rotations trans, rot = motpars[:, :3], motpars[:, 3:] @@ -325,9 +323,7 @@ def motpars_afni2fsl(motpars): raise ValueError('Input must be an existing file or a numpy array.') if motpars.shape[1] != 6: - raise ValueError( - f'Motion parameters must have exactly 6 columns, not {motpars.shape[1]}.' - ) + raise ValueError(f'Motion parameters must have exactly 6 columns, not {motpars.shape[1]}.') # Split translations from rotations trans, rot = motpars[:, :3], motpars[:, 3:]