pynrrd-1.1.3


توضیحات

Pure python module for reading and writing NRRD files.
ویژگی مقدار
سیستم عامل -
نام فایل pynrrd-1.1.3
نام pynrrd
نسخه کتابخانه 1.1.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Maarten Everts <me@nn8.nl>, Addison Elliott <addison.elliott@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/pynrrd/
مجوز Copyright (c) 2012 Maarten H. Everts and contributors. See AUTHORS for more details. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
.. image:: https://travis-ci.org/mhe/pynrrd.svg?branch=master :target: https://travis-ci.org/mhe/pynrrd :alt: Build Status .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.592532.svg :target: https://doi.org/10.5281/zenodo.592532 :alt: DOI .. image:: https://img.shields.io/pypi/pyversions/pynrrd.svg :target: https://img.shields.io/pypi/pyversions/pynrrd.svg :alt: Python version .. image:: https://badge.fury.io/py/pynrrd.svg :target: https://badge.fury.io/py/pynrrd :alt: PyPi version .. image:: https://readthedocs.org/projects/pynrrd/badge/?version=stable :target: https://pynrrd.readthedocs.io/en/stable/?badge=stable :alt: Documentation Status .. image:: https://codecov.io/gh/mhe/pynrrd/branch/master/graph/badge.svg :target: https://codecov.io/gh/mhe/pynrrd | pynrrd ====== pynrrd is a pure-Python module for reading and writing `NRRD <http://teem.sourceforge.net/nrrd/>`_ files into and from numpy arrays. Requirements ------------ * `numpy <https://numpy.org/>`_ * typing_extensions v1.0+ requires Python 3.7 or above. If you have an older Python version, please install a v0.x release instead. Installation ------------ Install via pip and PyPi repository (recommended) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: bash pip install pynrrd Install via pip and GitHub ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: bash pip install git+https://github.com/mhe/pynrrd.git Install from source (recommended for contributing to pynrrd) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ For developers that want to contribute to pynrrd, you can clone the pynrrd repository and install it using the following commands: .. code-block:: bash git clone https://github.com/mhe/pynrrd.git cd pynrrd pip install . or, for the last line, instead use: .. code-block:: bash pip install -e . to install in 'develop' or 'editable' mode, where changes can be made to the local working code and Python will use the updated pynrrd code. **Tests** The tests can be run via the following command from the base directory: .. code-block:: bash python -m unittest discover -v nrrd/tests **Format and Lint code** This repository uses pre-commit hooks to run format and lint the code and they are enforced in CI. See [pre-commit](https://pre-commit.com) Example usage ------------- .. code-block:: python import numpy as np import nrrd # Some sample numpy data data = np.zeros((5,4,3,2)) filename = 'testdata.nrrd' # Write to a NRRD file nrrd.write(filename, data) # Read the data back from file readdata, header = nrrd.read(filename) print(readdata.shape) print(header) Next Steps ---------- For more information, see the `documentation <http://pynrrd.readthedocs.io/>`_. License ------- See the `LICENSE <https://github.com/mhe/pynrrd/blob/master/LICENSE>`_ for more information.


نیازمندی

مقدار نام
- numpy>=1.21
- typing_extensions
xtr build;
xtr pre-commit;
xtr pytest;


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl pynrrd-1.1.3:

    pip install pynrrd-1.1.3.whl


نصب پکیج tar.gz pynrrd-1.1.3:

    pip install pynrrd-1.1.3.tar.gz