Skip to content

Commit

Permalink
Merge pull request #191 from phobson/update-with-np-depr
Browse files Browse the repository at this point in the history
use stdlib deprecation instead of numpy
  • Loading branch information
phobson authored Oct 8, 2024
2 parents f540f9d + c6da714 commit 077dc85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 3 additions & 1 deletion wqio/features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import warnings

import numpy
import pandas
import seaborn
Expand Down Expand Up @@ -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
Expand Down
11 changes: 2 additions & 9 deletions wqio/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 077dc85

Please sign in to comment.