Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wtclarke committed Oct 21, 2024
1 parent 9bcb711 commit 9b027bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nifti_mrs/tools/split_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def split(nmrs, dimension, index_or_indices):
if dimension > (nmrs.ndim - 1) or dimension < 4:
raise ValueError('Dimension must be one of 4, 5, or 6 (or DIM_TAG string).'
f' This data has {nmrs.ndim} dimensions,'
f' i.e. a maximum dimension value of {nmrs.ndim-1}.')
f' i.e. a maximum dimension value of {nmrs.ndim - 1}.')
dim_index = dimension
else:
raise TypeError('Dimension must be an int (4, 5, or 6) or string (DIM_TAG string).')
Expand Down Expand Up @@ -164,7 +164,7 @@ def merge(array_of_nmrs, dimension):
if dimension > (array_of_nmrs[0].ndim - 1) or dimension < 4:
raise ValueError('Dimension must be one of 4, 5, or 6 (or DIM_TAG string).'
f' This data has {array_of_nmrs[0].ndim} dimensions,'
f' i.e. a maximum dimension value of {array_of_nmrs[0].ndim-1}.')
f' i.e. a maximum dimension value of {array_of_nmrs[0].ndim - 1}.')
dim_index = dimension
else:
raise TypeError('Dimension must be an int (4, 5, or 6) or string (DIM_TAG string).')
Expand Down

0 comments on commit 9b027bb

Please sign in to comment.