Skip to content

Commit

Permalink
Remove groups that are duplicated through the insertion of intermedia…
Browse files Browse the repository at this point in the history
…te ranks (and bump version number)
  • Loading branch information
mirkobunse committed Jul 30, 2024
1 parent dc381ec commit 698a8e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions critdd/diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def get_groups(self, alpha=.05, adjustment="holm", return_names=False, return_si
np.logical_or(r_min >= r_min[i], r_max < r_max[i])
))
groups = [ g for (g, i) in zip(groups, is_maximal) if i ] # remove non-maximal groups
groups = [ np.array(g) for g in set(tuple(g) for g in groups) ] # remove duplicates
if not return_singletons:
groups = list(filter(lambda g: len(g) > 1, groups))
if return_names:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def readme():

setup(
name="critdd",
version="0.0.4-dev",
version="0.0.4",
description="Critical difference diagrams with Python and Tikz",
long_description=readme(),
classifiers=[
Expand Down

0 comments on commit 698a8e5

Please sign in to comment.