Skip to content

Commit 17eadd4

Browse files
authored
Merge pull request #810 from mgxd/mnt/dep-reports
MNT: Add PendingDeprecationWarning to nireports modules
2 parents 97534b3 + b72306e commit 17eadd4

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import warnings
2+
3+
msg = (
4+
'Niworkflows will be deprecating reporting in favor of a standalone library "nireports".'
5+
)
6+
7+
warnings.warn(msg, PendingDeprecationWarning)

niworkflows/viz/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3+
import warnings
4+
35
from .plots import plot_carpet
46
from .utils import SVGNS
57

8+
msg = (
9+
'Niworkflows will be deprecating visualizations in favor of a standalone library "nireports".'
10+
)
11+
12+
warnings.warn(msg, PendingDeprecationWarning)
13+
614
__all__ = ["plot_carpet", "SVGNS"]

0 commit comments

Comments
 (0)