I believe there is a strong use case for the warnings output by logger to be instead created by warnings. In this case, one can fetch cases where the algorithm would not converge and, for example, try again with known lower / upper parameters. This is helpful, for example, when one is working with a lot of different geometries for which one would like to get the concave hull.
The same goes for the warning "'Singular matrix. Likely caused by all points lying in an N-1 space." If this warning can be fetched, one can possibly stop the execution of the optimizealpha algorithm right away and set, e.g., alpha=0 directly.
I benefitted from changing these details in the code, so I am posting this as a suggestion. Can also do it myself.
Description
I believe there is a strong use case for the warnings output by
logger
to be instead created bywarnings
. In this case, one can fetch cases where the algorithm would not converge and, for example, try again with known lower / upper parameters. This is helpful, for example, when one is working with a lot of different geometries for which one would like to get the concave hull.The same goes for the warning "'Singular matrix. Likely caused by all points lying in an N-1 space." If this warning can be fetched, one can possibly stop the execution of the
optimizealpha
algorithm right away and set, e.g., alpha=0 directly.I benefitted from changing these details in the code, so I am posting this as a suggestion. Can also do it myself.