python-quantities

所属分类:金融证券系统
开发工具:Python
文件大小:125KB
下载次数:0
上传日期:2023-04-07 04:50:03
上 传 者sh-1993
说明:  python数量,用于python编程语言的数量包
(python-quantities,Quantities package for the python programming language)

文件列表:
.readthedocs.yaml (633, 2023-04-05)
CHANGES.txt (7255, 2023-04-05)
MANIFEST.in (85, 2023-04-05)
conda.recipe (0, 2023-04-05)
conda.recipe\bld.bat (184, 2023-04-05)
conda.recipe\build.sh (156, 2023-04-05)
conda.recipe\format_version.py (167, 2023-04-05)
conda.recipe\meta.yaml (359, 2023-04-05)
conda.recipe\run_test.py (140, 2023-04-05)
doc (0, 2023-04-05)
doc\Makefile (3134, 2023-04-05)
doc\_templates (0, 2023-04-05)
doc\_templates\indexsidebar.html (340, 2023-04-05)
doc\conf.py (6764, 2023-04-05)
doc\devel (0, 2023-04-05)
doc\devel\devnotes.rst (248, 2023-04-05)
doc\devel\documenting.rst (9471, 2023-04-05)
doc\devel\index.rst (150, 2023-04-05)
doc\devel\release.rst (1399, 2023-04-05)
doc\index.rst (725, 2023-04-05)
doc\make.bat (3079, 2023-04-05)
doc\rtd-requirements.txt (9, 2023-04-05)
doc\sphinxext (0, 2023-04-05)
doc\sphinxext\ipython_console_highlighting.py (4187, 2023-04-05)
doc\user (0, 2023-04-05)
doc\user\credits.rst (772, 2023-04-05)
doc\user\index.rst (171, 2023-04-05)
doc\user\installation.rst (767, 2023-04-05)
doc\user\issues.rst (2592, 2023-04-05)
doc\user\license.rst (3524, 2023-04-05)
doc\user\tutorial.rst (91, 2023-04-05)
pyproject.toml (1424, 2023-04-05)
quantities (0, 2023-04-05)
... ...

========== quantities ========== Quantities is designed to handle arithmetic and conversions of physical quantities, which have a magnitude, dimensionality specified by various units, and possibly an uncertainty. See the tutorial_ for examples. Quantities builds on the popular numpy library and is designed to work with numpy ufuncs, many of which are already supported. Quantities is actively developed, and while the current features and API are stable, test coverage is incomplete so the package is not suggested for mission-critical applications. |pypi version|_ |Build status|_ .. |pypi version| image:: https://img.shields.io/pypi/v/quantities.png .. _`pypi version`: https://pypi.python.org/pypi/quantities .. |Build status| image:: https://github.com/python-quantities/python-quantities/actions/workflows/test.yml/badge.svg?branch=master .. _`Build status`: https://github.com/python-quantities/python-quantities/actions/workflows/test.yml .. _tutorial: http://python-quantities.readthedocs.io/en/latest/user/tutorial.html A Python package for handling physical quantities. The source code and issue tracker are hosted on GitHub: https://www.github.com/python-quantities/python-quantities Download -------- Get the latest version of quantities from https://pypi.python.org/pypi/quantities/ To get the Git version do:: $ git clone git://github.com/python-quantities/python-quantities.git Documentation and usage ----------------------- You can find the official documentation at: http://python-quantities.readthedocs.io/ Here is a simple example: .. code:: python >>> import quantities as pq >>> distance = 42*pq.metre >>> time = 17*pq.second >>> velocity = distance / time >>> "%.3f %s" % (velocity.magnitude, velocity.dimensionality) '2.471 m/s' >>> velocity + 3 Traceback (most recent call last): ... ValueError: Unable to convert between units of "dimensionless" and "m/s" Installation ------------ quantities has a hard dependency on the `NumPy `_ library. You should install it first, please refer to the NumPy installation guide: http://docs.scipy.org/doc/numpy/user/install.html To install quantities itself, then simply run:: $ pip install quantities Tests ----- To execute all tests, install pytest:: $ python -m pip install pytest And run:: $ pytest in the current directory. The master branch is automatically tested by GitHub Actions. Author ------ quantities was originally written by Darren Dale, and has received contributions from `many people`_. .. _`many people`: https://github.com/python-quantities/python-quantities/graphs/contributors License ------- Quantities only uses BSD compatible code. See the Open Source Initiative `licenses page `_ for details on individual licenses. See `doc/user/license.rst `_ for further details on the license of quantities

近期下载者

相关文件


收藏者