polyTEM.spatial.spatial_analysis.create_polygons

polyTEM.spatial.spatial_analysis.create_polygons(peaks_df, alpha=1, verbose=True, num_threads=8, warning_msg='ignore')

create polygon for each cluster group using alpha shape set to concave hull alpha is used to determine the convexity and concavitiy of the final polygon first check if peaks_df[“coo”] exists, otherwise create it

Note

cluster_df will be deprecated in favor of DomainCollection

parallization using multiprocessing