Skip to content

Commit b8dfeab

Browse files
committed
STY: Update docstring, check bool implicitly
1 parent 328dd16 commit b8dfeab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

niworkflows/interfaces/mni.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,16 +355,16 @@ def _validate_results(self):
355355

356356
def mask(in_file, mask_file, new_name):
357357
"""
358-
Applies a binary mask to an image.
358+
Apply a binary mask to an image.
359359
360360
Parameters
361361
----------
362362
in_file : str
363-
Path to a NIfTI file.
363+
Path to a NIfTI file to mask
364364
mask_file : str
365-
Path to a NIfTI file.
365+
Path to a binary mask
366366
new_name : str
367-
Path/filename for the masked output image.
367+
Path/filename for the masked output image.
368368
369369
Returns
370370
-------
@@ -436,7 +436,7 @@ def create_cfm(in_file, lesion_mask=None, global_mask=True, out_path=None):
436436
in_img = nb.load(in_file)
437437

438438
# If we want a global mask, create one based on the input image.
439-
if global_mask is True:
439+
if global_mask:
440440
# Create a mask of ones with the shape of the input image.
441441
data = np.ones(in_img.shape, dtype=np.uint8)
442442
else:

0 commit comments

Comments
 (0)