.. image:: https://travis-ci.org/jmeyers314/batoid.svg?branch=master :target: https://travis-ci.org/jmeyers314/batoid .. image:: https://codecov.io/gh/jmeyers314/batoid/branch/master/graph/badge.svg :target: https://codecov.io/gh/jmeyers314/batoid
A c++ backed python optical raytracer.
Batoid is known to work on MacOS and linux, using Python version 3.4+, and either the clang or gcc compiler with support for c++11.
Released versions of batoid are available on pypi as source distributions. This means you will need at least c++14 compiler available and that setup.py can find it. This should hopefully be the case on most *nix systems, in which case, the following ought to work::
pip install batoid
If Pypi doesn't work, then you can try cloning the source from github and
running setup.py. One minor hiccup in this case is that the batoid repo
includes submodules for
eigen, so when cloning for the
first time, a command similar to one of the following should be used ::
git clone --recurse-submodules firstname.lastname@example.org:jmeyers314/batoid.git
git clone --recurse-submodules https://github.com/jmeyers314/batoid.git
Once the repo and the submodules have been cloned, then compile and install with ::
python setup.py install
or optionally ::
python setup.py install --user
To run the unit tests, from the batoid directory, first install the testing requirements ::
pip install -r test_requirements.txt
And then run the tests using setup.py ::
python setup.py test
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size batoid-0.1.0.tar.gz (1.1 MB)||File type Source||Python version None||Upload date||Hashes View hashes|