From 1e0a641cfa05d9a6ce23e2eed641a05b9846aaf8 Mon Sep 17 00:00:00 2001 From: Paul Hobson Date: Mon, 7 Oct 2024 22:02:12 -0700 Subject: [PATCH 1/2] use stdlib deprecation instead of numpy --- wqio/features.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wqio/features.py b/wqio/features.py index 5272ffc..a7a066d 100644 --- a/wqio/features.py +++ b/wqio/features.py @@ -1,3 +1,5 @@ +import warnings + import numpy import pandas import seaborn @@ -193,8 +195,8 @@ def dataframe(self): return self._dataframe @property - @numpy.deprecate def full_data(self): + warnings.warn("Use DataCollection.dataframe instead", DeprecationWarning) return self.dataframe @property From c6da71433a0756abc93c2d1add3f702b89ffd177 Mon Sep 17 00:00:00 2001 From: Paul Hobson Date: Mon, 7 Oct 2024 22:06:56 -0700 Subject: [PATCH 2/2] remove check for python3 --- wqio/tests/helpers.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/wqio/tests/helpers.py b/wqio/tests/helpers.py index 5869f1c..75bd186 100644 --- a/wqio/tests/helpers.py +++ b/wqio/tests/helpers.py @@ -244,15 +244,8 @@ def _show_system_info(): # pragma: no cover def checkdep_tex(): # pragma: no cover - if sys.version_info[0] >= 3: - - def byte2str(b): - return b.decode("ascii") - - else: # pragma: no cover - - def byte2str(b): - return b + def byte2str(b): + return b.decode("ascii") try: s = subprocess.Popen(["tex", "-version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)