No project description provided
Project description
PyToJCAMP
Python to JCAMP converter. Inspired by PyToJCAMP.
Some tools work well with the JCAMP format. This package allows converting Python data structures to JCAMP, this can make it easier for Python based web services to interact with the ELN.
Installation
To get the latest development version from the head use
pip install git+https://github.com/cheminfo-py/pytojcamp.git
to install the latest stable release use
pip install pytojcamp
Usage
See the example notebooks, which you can try out on Binder.
x/y data
For simple x/y data you can use
from pytojcamp import from_xy
jcamp_string = from_xy((x,y))
multicolumn data
For multicolumn data you can use
from pytojcamp import from_dict
data_dictionaries = {
'x' : {
'data': [1,2,3],
'type': 'INDEPENDENT',
'unit': 'cm'
},
'y' : {
'data': [3,2,3],
'type': 'DEPENDENT',
'unit': 'h'
},
'z' : {
'data': [3,2,3],
'type': 'DEPENDENT',
'unit': 'kg'
}
}
jcamp_string = from_dict(data_dictionaries)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytojcamp-0.1.0.tar.gz
(22.6 kB
view hashes)
Built Distribution
Close
Hashes for pytojcamp-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f08f52eb2bec7182433d021ac8d0c14cf2075bd24a3a9028b19168e0884a2ad1 |
|
MD5 | 724b467670ec9dcfdb166d099e5b310b |
|
BLAKE2b-256 | 25ebcb89bd686687a2a356ce64eb1e1ff23d6254679cdc12229b2b8244d14bd7 |