Metadata-Version: 2.4
Name: nmrglue-ng
Version: 1.6.2
Summary: An independent continuation of nmrglue for working with NMR data in Python
Author-email: "Jonathan J. Helmus" <jjhelmus@gmail.com>
License-Expression: BSD-3-Clause
Project-URL: Homepage, https://nmrglue-ng.readthedocs.io/stable/
Project-URL: Documentation, https://nmrglue-ng.readthedocs.io/stable/
Project-URL: Repository, https://github.com/spectrochempy/nmrglue-ng
Project-URL: Issues, https://github.com/spectrochempy/nmrglue-ng/issues
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Requires-Dist: numpy>=1.21.2
Requires-Dist: scipy>=1.7.2
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx-book-theme; extra == "docs"
Requires-Dist: sphinx-design; extra == "docs"
Requires-Dist: sphinx_rtd_theme; extra == "docs"
Requires-Dist: myst-nb; extra == "docs"
Requires-Dist: numpydoc; extra == "docs"
Requires-Dist: matplotlib; extra == "docs"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: h5py; extra == "test"
Requires-Dist: tomli; python_version < "3.11" and extra == "test"
Dynamic: license-file

==========
nmrglue-ng
==========

|CI| |Coverage| |PyPI| |Conda| |Docs| |License|

.. |CI| image:: https://github.com/spectrochempy/nmrglue-ng/actions/workflows/ci.yml/badge.svg?branch=master
   :alt: Test status on master
   :target: https://github.com/spectrochempy/nmrglue-ng/actions/workflows/ci.yml?query=branch%3Amaster
.. |Coverage| image:: https://codecov.io/gh/spectrochempy/nmrglue-ng/branch/master/graph/badge.svg?flag=autonomous
   :alt: Self-contained test coverage on master
   :target: https://app.codecov.io/gh/spectrochempy/nmrglue-ng/tree/master
.. |PyPI| image:: https://img.shields.io/pypi/v/nmrglue-ng
   :alt: PyPI version
   :target: https://pypi.org/project/nmrglue-ng/
.. |Conda| image:: https://img.shields.io/conda/v/spectrocat/nmrglue-ng
   :alt: Conda version on spectrocat
   :target: https://anaconda.org/spectrocat/nmrglue-ng
.. |Docs| image:: https://img.shields.io/readthedocs/nmrglue-ng/stable
   :alt: Stable documentation build status
   :target: https://nmrglue-ng.readthedocs.io/stable/
.. |License| image:: https://img.shields.io/pypi/l/nmrglue-ng
   :alt: BSD 3-Clause License
   :target: https://github.com/spectrochempy/nmrglue-ng/blob/master/LICENSE.txt

Read, write, convert, process, and analyse NMR data in Python. nmrglue-ng is
an independent continuation of `nmrglue <https://github.com/jjhelmus/nmrglue>`_,
originally developed by Jonathan J. Helmus and contributors. The distribution
is ``nmrglue-ng``; the Python import remains ``nmrglue``.

Quick start
===========

Install in a Python 3.10+ environment::

    python -m pip install nmrglue-ng

Use one distribution per environment: historical ``nmrglue`` and ``nmrglue-ng``
install the same Python package. The `installation guide
<https://nmrglue-ng.readthedocs.io/stable/install.html>`_ covers uv, pip and Conda.

`Download the sample FID
<https://github.com/spectrochempy/nmrglue-ng/raw/v1.1.2/doc/source/getting-started/synthetic_1d_time.fid>`_
and save it beside your script:

.. code-block:: python

    import nmrglue as ng

    dic, data = ng.pipe.read("synthetic_1d_time.fid")

This returns a header dictionary and NumPy array. The `first-spectrum notebook
<https://nmrglue-ng.readthedocs.io/stable/getting-started/index.html>`_
continues through processing and plotting.

What nmrglue-ng adds
====================

* **Read and convert:** additional JCAMP-DX decoding; corrected axes, dimension
  order, sample packing and low-memory access across supported Bruker,
  Agilent/Varian, JEOL, RNMRTK and other format paths.
* **Process:** complete complex results for real-input FFTs, phase and low-level
  frequency shifts; corrected quadrature, window/filter and prediction paths.
* **Analyse:** corrected bounded fitting and covariance, integration
  uncertainties, baseline edges, lineshape estimates and peak segmentation.
  Covariance remains unavailable at fitted parameter bounds.
* **Integrate with other tools:** optional ``nmrglue.interop`` profiles expose
  samples, physical axes, components, metadata and normalization provenance.
  Check the `profile table
  <https://nmrglue-ng.readthedocs.io/stable/reference/interop.html#interop-profile-table>`_
  for their supported scope.

Existing reader interfaces are retained where practical, but corrections can
change numerical results. The `migration guide
<https://nmrglue-ng.readthedocs.io/latest/migration.html>`_ groups the results to
recheck by workflow. Coverage varies by format and operation; selected checks
against datasets and external NMR software do not establish general vendor parity.

Find the right documentation
============================

* `Guides <https://nmrglue-ng.readthedocs.io/stable/tutorials/index.html>`_:
  worked examples for reading, processing, conversion and analysis.
* `API reference <https://nmrglue-ng.readthedocs.io/stable/reference/index.html>`_:
  reader, processing, analysis and interop interfaces.
* `Release notes <https://nmrglue-ng.readthedocs.io/stable/whats-new.html>`_:
  published changes. The `development changelog
  <https://nmrglue-ng.readthedocs.io/latest/whats-new.html>`_ also contains
  unreleased changes and release preparations.
* `Contribute <https://nmrglue-ng.readthedocs.io/latest/contribute/index.html>`_:
  issue reports, development setup, tests, documentation and pull requests.

The global coverage badge measures self-contained tests on Ubuntu/Python 3.13,
including branches. External-corpus and NMRPipe tests, and tests skipped for
unavailable optional dependencies, are outside that indicator's scope.

Citation and license
====================

Please cite the original nmrglue paper where appropriate:

    Jonathan J. Helmus and Christopher P. Jaroniec,
    *Nmrglue: an open source Python package for the analysis of
    multidimensional NMR data*, Journal of Biomolecular NMR 55,
    355–367 (2013). doi:10.1007/s10858-013-9718-x.

nmrglue-ng retains the original Git history and is distributed under the
`BSD 3-Clause License
<https://github.com/spectrochempy/nmrglue-ng/blob/master/LICENSE.txt>`_.
