光束剖面分析工具
beprof的Python项目详细描述
概述
docs | |
---|---|
tests | |
package |
overv.io发布板:https://overv.io/DataMedSci/beprof/
光束剖面分析工具
库提供了使用梁截面轮廓的方法,梁截面轮廓是一组点 (带可选元数据的二维)按一个坐标排序。 CD beprof基于numpy的nparray类,它提供 用于不同计算和数据分析的多种工具。
安装
当前版本可用于测试pypi服务器,尽管 稳定版本已经准备好,它将被推送到正式的pypi repo。
现在,可以使用以下命令从这个git存储库进行安装:
pip install setuptools versioneer pip install git+https://github.com/DataMedSci/beprof.git
要统一安装,只需使用:
pip uninstall beprof
文件
https://beprof.readthedocs.io/
功能
一旦安装了beprof,就应该能够将is作为python模块导入 使用ipython的代码将是,即:
import beprof from beprof import curve #imports curve module from beprof import profile #imports profile module
导入必要的模块后,您可以使用它们处理配置文件:
from beprof import profile dir(profile) p = profile.Profile([[0, 1], [1, -1], [2, 3], [4, 0]]) print(p)
您也可以使用其他模块作为numpy或matplotlib来使用beprof:
#assuming you already defined p as above import numpy as np import matplotlib.pyplot as plt foo = np.asarray(p) print(foo.shape()) plt.plot(foo[:,0], foo[:,1]) plt.show()
请注意,beprof是一个库,最终用户不应该“运行它”。 强烈建议使用git clone下载代码。 git只适用于开发人员,最终用户应该使用pip安装。 如果您对开发感兴趣,请查看CONTRIBUTING部分。
学分
这个包是用Cookiecutter和grzanka/cookiecutter-pip-docker-versioneer项目模板创建的。