def test_geodataframe_multi_attr(): cluster_object = MaxPRegionsExact() cluster_object.fit_from_geodataframe(gdf, [attr_str] * 2, [spatially_extensive_attr_str] * 2, threshold=double_threshold) obtained = region_list_from_array(cluster_object.labels_) compare_region_lists(obtained, optimal_clustering)
def test_geodataframe_basic(): cluster_object = MaxPRegionsExact() cluster_object.fit_from_geodataframe(gdf, attr_str, spatially_extensive_attr_str, threshold=threshold) obtained = region_list_from_array(cluster_object.labels_) compare_region_lists(obtained, optimal_clustering)
def test_geodataframe_basic(): cluster_object = MaxPRegionsExact() cluster_object.fit_from_geodataframe( gdf, attr_str, spatially_extensive_attr_str, threshold=threshold ) obtained = region_list_from_array(cluster_object.labels_) compare_region_lists(obtained, optimal_clustering)