Skip to main content

Parse and Process NMR data.

Project description

pynmr

pyNMR is a set of python modules to parse, process, and analyze NMR data.

There are some fragments of a graphical user interface but at this point pyNMR is best used together with Jupyter Lab.

Currently supported NMR formats are Bruker TopSpin and RS2D.

There is some code for parsing files from Tecmag NTNMR, Magritek, and Varian under pynmr/model/parser, but at this point these formats are not officially supported.

Installation

pynmr is available at pip. It may be installed with

::

pip install pynmr

Usage

To import a Bruker dataset instantiate an nmr Data object:

..code:: python

 import pynmr
 path = "pathToTopSpin/"
 
 import pynmr.model.parser.topSpin as T
 import pynmr.model.processor as P
 import pynmr.model.operations as O
 
 import matplotlib.pyplot as plt
 import numpy as np
 
 data = T.TopSpin("./data/bruker/dnp_210316_1_solids/1/")
 
 Processor = P.Processor([O.LeftShift(21),
                     O.LineBroadening(0.2),
                     O.FourierTransform(),
                     O.Phase0D(190)])
 Processor.runStack(data)

Internal Notes

To install this package locally and install for development, use this command

pip install -e ./

More info available here: https://packaging.python.org/tutorials/installing-packages/

MIT License

Copyright (c) 2022 Benno Meier

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

pynmr-0.32.tar.gz (24.9 kB view details)

Uploaded Source

File details

Details for the file pynmr-0.32.tar.gz.

File metadata

  • Download URL: pynmr-0.32.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for pynmr-0.32.tar.gz
Algorithm Hash digest
SHA256 0d6203502a046e3040bdadece855ade0f642576de276b233bfc69521248f4a2f
MD5 21b905b6269597073564cc7bc7a1ed8b
BLAKE2b-256 b13457dc8a3e15159eeaadbec78f530da0a5f4fdbedb7b49db7d48098c7956b1

See more details on using hashes here.

Supported by

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