Optimal peanut butter and banana sandwiches
A small package for optimizing banana coverage on peanut butter and banana sandwiches. See blog post for more info.
Python 3.7+ is required.
nannernest is generally pip installable. Due to some C dependencies with the nesting library that I use nest2D, along with an outstanding PR, I would recommend the following way to install everything:
First, make sure you have boost and cmake installed. If you are on Linux, then you may have cmake installed, and you can install boost with
sudo apt-get install libboost-all-dev I'm on a Mac, and I installed cmake with conda and boost with brew:
conda install cmake
brew install boostNext, pip install my fork of nest2D:
pip install git+https://github.com/EthanRosenthal/nest2D.git@download-dependenciesFinally, pip install nannernest
pip install nannernestTake a top-down picture that contains your banana and at least one slice of bread. Pass the image in via command line:
$ nannernest my_image.jpg…No open issues yet, or sync has not completed.