Skip to content

Commit

Permalink
removed overindentations
Browse files Browse the repository at this point in the history
  • Loading branch information
behrouzvia committed Jan 26, 2024
1 parent 31455dd commit 99ef47e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shimmingtoolbox/masking/mask_mrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ def mask_mrs(fname_input, raw_data, center, size):
Args:
fname_input (str): Input path of the fieldmap to be shimmed (supported extention .nii and .nii.gz)
raw_data (str): Input path of the of the twix raw-data (supported extention .dat)
center (float): voxel's center position in mm of the x, y and z of the scanner's coordinate
size (float): voxel size in mm of the x, y and z of the scanner's coordinate
center (list): voxel's center position in mm of the x, y and z of the scanner's coordinate
size (list): voxel size in mm of the x, y and z of the scanner's coordinate
Returns:
numpy.ndarray: Cubic mask with same dimensions as MRS voxel.
"""

if fname_input is None:
raise TypeError(f"The fname_input is cannot be None. See: st_mask mrs-mask -h")
raise TypeError(f"The fname_input cannot be None.")

if raw_data is None:
logger.info(" The raw_data is not provided, creating the mask with the given voxel position and size info")
if center is None or size is None:
raise TypeError('The raw_data is not provided; the voxel position and size are required to proceed')
raise TypeError('The raw_data is not provided; the voxel position and size are required to proceed')
else:
mrs_voxel_size = size
logger.debug('center:', center)
Expand Down

0 comments on commit 99ef47e

Please sign in to comment.