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.
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.