Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use stdlib deprecation instead of numpy #191

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading