Skip to content

Commit

Permalink
Updates default when no mask
Browse files Browse the repository at this point in the history
  • Loading branch information
teresamg committed May 16, 2024
1 parent df7b6ec commit 1768fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nireports/reportlets/modality/dwi.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def nii_to_carpetplot_data(
nii_data = nii.get_fdata()

if mask_nii is None:
mask_data = np.ones(nii_data.shape[0:2])
mask_data = np.ones(nii_data.shape[0:3])
else:
mask_data = np.asanyarray(mask_nii.dataobj, dtype=np.int16)

Check warning on line 457 in nireports/reportlets/modality/dwi.py

View check run for this annotation

Codecov / codecov/patch

nireports/reportlets/modality/dwi.py#L457

Added line #L457 was not covered by tests

Expand Down

0 comments on commit 1768fda

Please sign in to comment.