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

Compatibility with seaborn 0.13 #155

Merged
merged 13 commits into from
Nov 19, 2024
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
numpy>=1.12.1
seaborn>=0.9.0,<0.12
seaborn>=0.9.0
matplotlib>=2.2.2
pandas>=0.23.0,<2.0.0
pandas>=0.23.0
scipy>=1.1.0
statsmodels
packaging
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from distutils.core import setup
from setuptools import find_packages
from setuptools import find_packages, setup
import re

with open("README.md", "r") as f:
Expand Down
7 changes: 5 additions & 2 deletions statannotations/Annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def print_labels_and_content(self, sep=" vs. "):

def check_data_stat_result(self):
if not isinstance(self.data, StatResult):
warnings.warn("Annotation data has incorrect class." +
"Should be StatResult. Cannot annotate current pair.")
msg = (
"Cannot annotate current pair. Annotation data has incorrect "
f"class, should be StatResult: {type(self.data)}"
)
warnings.warn(msg)
return False
return True
Loading
Loading