Morph an input dataset of 2D points into select shapes, while preserving the summary statistics to a given number of decimal points through simulated annealing. It is intended to be used as a teaching tool to illustrate the importance of data visualization.
remove LineCollection._distance_point_to_line method as it's not used anywhere anymore
use numpy vectorized ops when calling LineCollection.distance, resulting in about 100M less function calls for the star shape
(subject to change) make LineCollection initializer raise a ValueError if any of the lines is actually a point (i.e. start == end) and add a test for it
Checklist
[x] Test cases have been modified/added to cover any code changes.
[x] Docstrings have been modified/created for any code changes.
[x] All linting and formatting checks pass (see the contributing guidelines for more information).
As requested in https://github.com/stefmolin/data-morph/pull/198#discussion_r1685782050, this is now a separate PR.
Describe your changes
LineCollection._distance_point_to_line
method as it's not used anywhere anymoreLineCollection.distance
, resulting in about 100M less function calls for the star shapeLineCollection
initializer raise aValueError
if any of the lines is actually a point (i.e.start == end
) and add a test for itChecklist