光学光线跟踪器
batoid的Python项目详细描述
[//]:(@mainpage) [![生成状态](https://travis-ci.org/jmeyers314/batoid.svg?branch=master)](https://travis-ci.org/jmeyers314/batoid) [![codecov](https://codecov.io/gh/jmeyers314/batoid/branch/master/graph/badge.svg)](https://codecov.io/gh/jmeyers314/batoid) [![文档状态](https://readthedocs.org/projects/batoid/badge/?version=latest)](https://batoid.readthedocs.io/en/latest/?徽章=最新)
蝙蝠形
一个c++支持的python光学光线跟踪器。
要求
众所周知,batoid使用python 3.4+版本在macos和linux上工作,并且 支持c++11的clang或gcc编译器。
安装
这个应该像克隆repo并运行setup.py一样简单。一个未成年人 问题是这个repo包含pybind11和eigen的子模块,所以当 第一次克隆时,类似于以下命令之一的命令应该是 使用:
` git clone --recurse-submodules git@github.com:jmeyers314/batoid.git `
或
` git clone --recurse-submoduleshttps://github.com/jmeyers314/batoid.git `
复制完repo和子模块后,使用
` python setup.py install `
或可选
` python setup.py install --user `
测试
要从batoid目录运行单元测试,首先安装测试 要求:
` pip install -r test_requirements.txt `
然后使用setup.py:
运行测试` python setup.py test `