Skip to content

Commit

Permalink
Merge pull request #155 from getzze/compat-seaborn-13
Browse files Browse the repository at this point in the history
Compatibility with seaborn 0.13
  • Loading branch information
trevismd authored Nov 19, 2024
2 parents 8f148c1 + da73322 commit 9cf8097
Show file tree
Hide file tree
Showing 24 changed files with 2,648 additions and 506 deletions.
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

0 comments on commit 9cf8097

Please sign in to comment.