stefmolin / data-morph

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.
https://stefaniemolin.com/data-morph/
MIT License
60 stars 16 forks source link

Add spiral target shape #192

Open nickc6424 opened 2 months ago

nickc6424 commented 2 months ago

Fixes #177

Describe your changes Added Spiral target shape

Checklist

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.42%. Comparing base (51b8d26) to head (779380b). Report is 7 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/stefmolin/data-morph/pull/192/graphs/tree.svg?width=650&height=150&src=pr&token=3SEEG9SZQO&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin)](https://app.codecov.io/gh/stefmolin/data-morph/pull/192?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin) ```diff @@ Coverage Diff @@ ## main #192 +/- ## ======================================= Coverage 98.42% 98.42% ======================================= Files 43 43 Lines 1775 1781 +6 Branches 358 356 -2 ======================================= + Hits 1747 1753 +6 Misses 25 25 Partials 3 3 ``` | [Files](https://app.codecov.io/gh/stefmolin/data-morph/pull/192?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin) | Coverage Δ | | |---|---|---| | [src/data\_morph/shapes/factory.py](https://app.codecov.io/gh/stefmolin/data-morph/pull/192?src=pr&el=tree&filepath=src%2Fdata_morph%2Fshapes%2Ffactory.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin#diff-c3JjL2RhdGFfbW9ycGgvc2hhcGVzL2ZhY3RvcnkucHk=) | `100.00% <ø> (ø)` | | | [src/data\_morph/shapes/points.py](https://app.codecov.io/gh/stefmolin/data-morph/pull/192?src=pr&el=tree&filepath=src%2Fdata_morph%2Fshapes%2Fpoints.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin#diff-c3JjL2RhdGFfbW9ycGgvc2hhcGVzL3BvaW50cy5weQ==) | `100.00% <100.00%> (ø)` | | | [tests/shapes/test\_points.py](https://app.codecov.io/gh/stefmolin/data-morph/pull/192?src=pr&el=tree&filepath=tests%2Fshapes%2Ftest_points.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin#diff-dGVzdHMvc2hhcGVzL3Rlc3RfcG9pbnRzLnB5) | `100.00% <100.00%> (ø)` | |