wavepy内核库
wavep的Python项目详细描述
波比
wavePy是syncrotron光束线相干和波前测量数据分析的python库。目前主要包括:单光栅成像、散斑跟踪、talbot峰相干扫描。
先决条件
系统中应安装以下库:
安装
>>> python3 -m pip install wavepy
作为开发人员安装
与git同步
注意
您需要安装git。
克隆
>>> git clone https://github.com/aps-xsd-opt-group/wavepy
更新本地安装
>>> git pull
使git存储您的凭证
>>> git config credential.helper store
使用conda
解决依赖关系注意
您需要安装anaconda或miniconda。
创造条件环境
>>> conda create -n ENV_NAME python=3.5 numpy=1.11 scipy=0.17 matplotlib=1.5 spyder=2.3.9 --yes
警告
编辑ENV_NAME
解决依赖关系
激活环境:
>>> source activate ENV_NAME
警告
编辑ENV_NAME
>>> conda install scikit-image=0.12 --yes >>> conda install -c dgursoy dxchange --yes
>>> pip install cffi >>> pip install unwrap >>> pip install tqdm >>> pip install termcolor >>> pip install easygui_qt
注意
unwrap需要cffi,tqdm用于进度条
添加推荐包
>>> conda install -c dgursoy xraylib
附加设置
easygui_qt与的qt后端冲突 matplotlib。解决办法 将后端更改为TKAGG。这可以在matplotlibrc文件中 (说明 here)。 在Spyder中,这是在“工具”->;“首选项”->;“控制台”->;“外部模块”中完成的, 我们将gui后端设置为 TKAGG