Skip to content

Commit

Permalink
Merge pull request #810 from mgxd/mnt/dep-reports
Browse files Browse the repository at this point in the history
MNT: Add PendingDeprecationWarning to nireports modules
  • Loading branch information
effigies authored Jun 1, 2023
2 parents 97534b3 + b72306e commit 17eadd4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions niworkflows/interfaces/reportlets/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import warnings

msg = (
'Niworkflows will be deprecating reporting in favor of a standalone library "nireports".'
)

warnings.warn(msg, PendingDeprecationWarning)
8 changes: 8 additions & 0 deletions niworkflows/viz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
import warnings

from .plots import plot_carpet
from .utils import SVGNS

msg = (
'Niworkflows will be deprecating visualizations in favor of a standalone library "nireports".'
)

warnings.warn(msg, PendingDeprecationWarning)

__all__ = ["plot_carpet", "SVGNS"]

0 comments on commit 17eadd4

Please sign in to comment.