Skip to main content

spectrochempy-nmr

NMR plugin for SpectroChemPy.

This package is the home for NMR-specific readers and tools that are useful in SpectroChemPy but should not live in the core package. It currently contributes the Bruker TopSpin reader, exposed through scp.nmr.read(...) and registered under the reader name topspin.

Future NMR readers or processing helpers can be added here without creating a new plugin package for each vendor format.

Installation

pip install spectrochempy[nmr]

For development inside the SpectroChemPy repository:

pip install -e .
pip install -e plugins/spectrochempy-nmr

Usage

import spectrochempy as scp

dataset = scp.nmr.read("path/to/1/fid")
dataset = scp.nmr.read("path/to/2rr")
dataset = scp.nmr.read("path/to/experiment", expno=1, procno=1)

The NMR ppm/frequency unit context is also provided by this plugin:

from spectrochempy_nmr.units import set_nmr_context

set_nmr_context(104.3 * scp.ur.MHz)

The compatibility aliases scp.nmr.read_topspin(...) and scp.read_topspin(...) are kept for historical usage. TopSpin is a reader, so it is not exposed as dataset.read_topspin(...) or dataset.nmr.read_topspin(...).

Development

python -m pytest tests/ -v

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spectrochempy_nmr-0.1.8.tar.gz (82.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spectrochempy_nmr-0.1.8-py3-none-any.whl (74.4 kB view details)

Uploaded Python 3

File details

Details for the file spectrochempy_nmr-0.1.8.tar.gz.

File metadata

  • Download URL: spectrochempy_nmr-0.1.8.tar.gz
  • Upload date:
  • Size: 82.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spectrochempy_nmr-0.1.8.tar.gz
Algorithm Hash digest
SHA256 fe9b2ba1d7835cdf710590511de6ee276510b492aa34ed40bb0961ee04974ad9
MD5 90b551f2a41f6cdac256356122feaddf
BLAKE2b-256 c27f210e8c7718abba6ef24dd6097d63eb833111c22c9122e4d8d1cafb7dba12

See more details on using hashes here.

Provenance

The following attestation bundles were made for spectrochempy_nmr-0.1.8.tar.gz:

Publisher: publish_plugins.yml on spectrochempy/spectrochempy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spectrochempy_nmr-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for spectrochempy_nmr-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2aa208cc197534af5ef3c328a3cb1feb280c57d64dc876b14f0f1f96c1fac4fd
MD5 34aea7a9816b286273a615ac245dd3c8
BLAKE2b-256 f5df5ba311501b15618ef86d18eebbbab51a6402974206749c31379125e9fb0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for spectrochempy_nmr-0.1.8-py3-none-any.whl:

Publisher: publish_plugins.yml on spectrochempy/spectrochempy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page