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
67 stars 20 forks source link

Run multiple morphs in parallel #218

Open JohnAZoidberg opened 1 week ago

JohnAZoidberg commented 1 week ago

Is your feature request related to a problem? Please describe. It'll be hard to parallelize a single morph, but when doing multiple at the same time, like with data-morph --start-shape panda --target-shape all we could run the all at the same time on multiple CPU cores.

Describe the solution you'd like data-morph --start-shape panda --target-shape all should be roughly as fast as data-morph --start-shape panda --target-shape

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

github-actions[bot] commented 1 week ago

It looks like this is your first issue here – welcome! Please familiarize yourself with the contributing guidelines, if you haven't already.

stefmolin commented 1 week ago

Sounds like a great idea!

JohnAZoidberg commented 1 week ago

Easy to use a wrapper command like GNU parallel:

parallel data-morph \
     --start-shape music \
     --target-shape {} \
     ::: bullseye heart rectangle star slant_up