From 27ad41a10c4e38ca8251b0a8c3421a039bcec8d5 Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Wed, 23 Jun 2021 21:27:21 -0700 Subject: [PATCH] Add deprecation warning to MetaArray.__init__ --- pyqtgraph/metaarray/MetaArray.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyqtgraph/metaarray/MetaArray.py b/pyqtgraph/metaarray/MetaArray.py index 92930cae..f4eac1da 100644 --- a/pyqtgraph/metaarray/MetaArray.py +++ b/pyqtgraph/metaarray/MetaArray.py @@ -132,6 +132,10 @@ class MetaArray(object): def __init__(self, data=None, info=None, dtype=None, file=None, copy=False, **kwargs): object.__init__(self) + warnings.warn( + 'MetaArray is deprecated and will be removed in 0.14.', + DeprecationWarning, stacklevel=2 + ) self._isHDF = False if file is not None: