Skip to content

Commit

Permalink
pylint errors addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
adsouza committed Oct 21, 2024
1 parent 05a91c7 commit 399cf65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/mrtrix3/commands/5ttgen/msmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, inpath, name, expect_anisotropic):
else:
app.debug(f'{name} ODF image already on target voxel grid')
is_anisotropic = len(header.size()) > 3 and header.size()[3] > 1
if not (is_anisotropic == expect_anisotropic):
if is_anisotropic != expect_anisotropic:
app.warn(f'Received {"anisotropic" if is_anisotropic else "isotropic"} ODF for {name}'
f' but expected {"anisotropic" if expect_anisotropic else "isotropic"};'
' check order of input ODF images if this was not intentional')
Expand Down Expand Up @@ -125,4 +125,3 @@ def normalise(self, volsum_image):
preserve_pipes=True)

return result_masked

0 comments on commit 399cf65

Please sign in to comment.