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.3.tar.gz (40.4 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.3-py3-none-any.whl (38.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spectrochempy_nmr-0.1.3.tar.gz
  • Upload date:
  • Size: 40.4 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.3.tar.gz
Algorithm Hash digest
SHA256 f4a38c62a59d053c78ca225b16aee32dfe3f3b176bea0dd446bca37ddd581ba7
MD5 9b3fb0db276883770f98dcaa2d81b39d
BLAKE2b-256 aeecd6595260111f65120f4862402cde6bc099134ffbaf41738f658343618b3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spectrochempy_nmr-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2acd0856e6eb78e9e2788daa83c35646e83cfcbf0db8edfce353d90fcfcf17e2
MD5 b627b858350e4dfb0606e18b14271a22
BLAKE2b-256 7726343d8a8afa3a76355b0203212dae1f0efb012752c9e025dc6f139e1f798d

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