ArnaoutLab / diversity

Partitioned frequency- and similarity-sensitive diversity in Python
MIT License
6 stars 1 forks source link

Add similarity factory, subcommunity subsetting, and pairwise metacommunities #34

Closed Elliot-D-Hill closed 2 years ago

Elliot-D-Hill commented 2 years ago

The first commit adds the make_similarity factory, pairwise_metacommunities function, and subset_subcommunities function.

The second commit refactors the species subsetting logic in both Similarity classes. The changes made in the first commit wound up simplifying this refactor. The largest change is that we now use numpy.isin instead of the the isin defined in utilities.py.