Skip to main content

Optics raytracer

Project description

.. image:: :target: .. image:: :target:


A c++ backed python optical raytracer.



Batoid is known to work on MacOS and linux, using Python version 3.6+, and either the clang or gcc compiler with support for c++14.



Released versions of batoid are available on pypi as source distributions. This means you will need at least c++14 compiler available and that 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 One minor hiccup in this case is that the batoid repo includes pybind11 as a submodule, so when cloning for the first time, a command similar to one of the following should be used ::

git clone --recurse-submodules

or ::

git clone --recurse-submodules

Once the repo and the submodules have been cloned, then compile and install with ::

python install

or optionally ::

python 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 ::

python test

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

batoid-0.3.7.tar.gz (242.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page