fuzzy_simplicial_set in umap 0.4 is now:
return result, sigmas, rhos
This adds the check for if connectivities is a tuple, get the result (connectivities[0]) instead, thus connectivities.tocsr() won't throw an error. Backward compatible so shouldn't do anything other than allow use of umap 0.4. Code from scanpy
fuzzy_simplicial_set in umap 0.4 is now:
return result, sigmas, rhos
This adds the check for if connectivities is a tuple, get the result (connectivities[0]) instead, thus connectivities.tocsr() won't throw an error. Backward compatible so shouldn't do anything other than allow use of umap 0.4. Code from scanpy