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

Uploaded Python 3

File details

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

File metadata

  • Download URL: spectrochempy_nmr-0.1.4.tar.gz
  • Upload date:
  • Size: 40.1 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.4.tar.gz
Algorithm Hash digest
SHA256 f6032c16dd9c02ff374b838a89f1a8fd1f6a0098cde92f76b01ea95e1b07ca89
MD5 cca23a2623888bd26f4dada06677786b
BLAKE2b-256 49585b4c631ff6d39c8a77cdfa7daf2208962b21870dd6053e28bd8272ad2bbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spectrochempy_nmr-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 52cfc4a0a216a8de966262e0d685a7e41dce95638bbb7af6baf7588efc0d8d40
MD5 37d8e635f5c27ed2840db432d712923b
BLAKE2b-256 2b5c075887b53ad4e1d17e7a274acabb61c7d321899a108e1e6e632fa7b8f5fd

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