We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac6d730 + 5363d08 commit 8255be0Copy full SHA for 8255be0
1 file changed
nireports/reportlets/mosaic.py
@@ -27,10 +27,10 @@
27
import math
28
import os
29
import typing as ty
30
+import warnings
31
from os import path as op
32
from typing import Literal as L
33
from uuid import uuid4
-from warnings import warn
34
35
import matplotlib as mpl
36
import matplotlib.pyplot as plt
@@ -547,7 +547,9 @@ def plot_mosaic(
547
out_file = "mosaic.svg"
548
549
if plot_sagittal and views[1] is None and views[0] != "sagittal":
550
- warn("Argument ``plot_sagittal`` for plot_mosaic() should not be used.", stacklevel=2)
+ warnings.warn(
551
+ "Argument ``plot_sagittal`` for plot_mosaic() should not be used.", stacklevel=2
552
+ )
553
views = (views[0], "sagittal", None)
554
555
# Create mask for bounding box
0 commit comments