From b72306e5e9b7cef28caf2eb340cd5aa353e0e97c Mon Sep 17 00:00:00 2001 From: mathiasg Date: Thu, 1 Jun 2023 12:33:11 -0400 Subject: [PATCH] MNT: Add PendingDeprecationWarning to nireports modules --- niworkflows/interfaces/reportlets/__init__.py | 7 +++++++ niworkflows/viz/__init__.py | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/niworkflows/interfaces/reportlets/__init__.py b/niworkflows/interfaces/reportlets/__init__.py index e69de29bb2d..e4a66e15d0b 100644 --- a/niworkflows/interfaces/reportlets/__init__.py +++ b/niworkflows/interfaces/reportlets/__init__.py @@ -0,0 +1,7 @@ +import warnings + +msg = ( + 'Niworkflows will be deprecating reporting in favor of a standalone library "nireports".' +) + +warnings.warn(msg, PendingDeprecationWarning) diff --git a/niworkflows/viz/__init__.py b/niworkflows/viz/__init__.py index f68941d2016..d2f5ad358aa 100644 --- a/niworkflows/viz/__init__.py +++ b/niworkflows/viz/__init__.py @@ -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"]