Skip to main content

NMR readers and tools plugin for SpectroChemPy

Project description

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 as scp.nmr.read_topspin(...) 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_topspin("path/to/1/fid")
dataset = scp.nmr.read_topspin("path/to/2rr")
dataset = scp.nmr.read_topspin("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 legacy alias scp.read_topspin(...) is kept for compatibility. TopSpin is a reader, so it is not exposed as dataset.read_topspin(...) or dataset.nmr.read_topspin(...).

Development

python -m pytest tests/ -v

Project details


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.5.tar.gz (40.7 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.5-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spectrochempy_nmr-0.1.5.tar.gz
Algorithm Hash digest
SHA256 de529dee420a8e64fafc75d4f1484a794dbb9684553e791f4f55b12b88105f14
MD5 379baa0c330460d62ce638f83f924c48
BLAKE2b-256 0948f99775aa768cfc087c87703eebaa0ed54ae0d441db66349f6171576212af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spectrochempy_nmr-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 91c1a06c728cb9b4aeb677f3fd90bd00ef16a6120f44b21fe49eaa6e9e94b1c7
MD5 9b9335948471adb013b82d2e47d5154e
BLAKE2b-256 a9047fd0d65796521c2e04a53dcc54d0d8fe4f9ea7327dfa4be68b8ff1f4eb24

See more details on using hashes here.

Supported by

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