Parse data files created by CH Instruments potentiostats and Palmsens potentiostats
Project description
potentiostat-data-parser
Usage
Installation
Install latest from the GitHub repository:
$ pip install git+https://github.com/bxw315-umd/potentiostat-data-parser.git
or from conda
$ conda install -c bxw315-umd potentiostat_data_parser
or from pypi
$ pip install potentiostat_data_parser
Documentation
Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.
How to use
CHI Example
print(contents)
July 19, 2022 10:35:26
Differential Pulse Voltammetry
File: dpv_gce_0.1m_pbbuffer_220719.bin
Data Source: Experiment
Instrument Model: CHI1040C
Header:
Note:
Init E (V) = 0.4
Final E (V) = 1.4
Incr E (V) = 0.004
Amplitude (V) = 0.05
Pulse Width (sec) = 0.06
Sample Width (sec) = 0.03
Pulse Period (sec) = 0.5
Quiet Time (sec) = 2
Sensitivity (A/V) = 1e-5
Ep = 0.584V
ip = -1.618e-7A
Ap = -1.423e-8VA
Potential/V Current/A Time/s
0.440 -5.844e-7
0.480 -6.668e-7
0.520 -8.177e-7
0.560 -1.002e-6
0.600 -1.023e-6
0.640 -9.839e-7
0.680 -1.020e-6
0.720 -1.099e-6
0.760 -1.200e-6
0.800 -1.320e-6
0.840 -1.465e-6
0.880 -1.638e-6
0.920 -1.833e-6
0.960 -2.054e-6
1.000 -2.309e-6
1.040 -2.601e-6
1.080 -2.919e-6
1.120 -3.252e-6
1.160 -3.608e-6
1.200 -4.000e-6
1.240 -4.455e-6
1.280 -5.040e-6
1.320 -5.845e-6
1.360 -6.902e-6
1.400 -8.161e-6
parse_chi_file(contents)
{'memo': {'timestamp': '2022-07-19T10:35:26',
'technique': 'Differential Pulse Voltammetry',
'file': 'dpv_gce_0.1m_pbbuffer_220719.bin',
'instrument_model': 'CHI1040C'},
'parameters': {'Init E (V)': 0.4,
'Final E (V)': 1.4,
'Incr E (V)': 0.004,
'Amplitude (V)': 0.05,
'Pulse Width (sec)': 0.06,
'Sample Width (sec)': 0.03,
'Pulse Period (sec)': 0.5,
'Quiet Time (sec)': 2.0,
'Sensitivity (A/V)': 1e-05},
'numeric_data': {'Potential/V': array([0.44, 0.48, 0.52, 0.56, 0.6 , 0.64, 0.68, 0.72, 0.76, 0.8 , 0.84,
0.88, 0.92, 0.96, 1. , 1.04, 1.08, 1.12, 1.16, 1.2 , 1.24, 1.28,
1.32, 1.36, 1.4 ]),
'Current/A': array([-5.844e-07, -6.668e-07, -8.177e-07, -1.002e-06, -1.023e-06,
-9.839e-07, -1.020e-06, -1.099e-06, -1.200e-06, -1.320e-06,
-1.465e-06, -1.638e-06, -1.833e-06, -2.054e-06, -2.309e-06,
-2.601e-06, -2.919e-06, -3.252e-06, -3.608e-06, -4.000e-06,
-4.455e-06, -5.040e-06, -5.845e-06, -6.902e-06, -8.161e-06])}}
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file potentiostat_data_parser-0.0.3.tar.gz.
File metadata
- Download URL: potentiostat_data_parser-0.0.3.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
276abd19d4dc69ca5d324a2386163a76674671ebfe89593d6efd6b03c6941c82
|
|
| MD5 |
1579fdd452ea65dcc6db1325a7ca802c
|
|
| BLAKE2b-256 |
616bf000df30dc4ff8f5cc0ee7e878535ed91c7cd15a07e6c797b762f98806f6
|
File details
Details for the file potentiostat_data_parser-0.0.3-py3-none-any.whl.
File metadata
- Download URL: potentiostat_data_parser-0.0.3-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad889f51589e80c92c23955a0a9ba08df1fef8eceb1e059efd963e6a1ff5c6e4
|
|
| MD5 |
a9999731a99a74f76d2d9486bdc8cdc2
|
|
| BLAKE2b-256 |
e23748bcd91a37890682fb67b2e5a534ef85858d6ab7a399cd4057fd767f8971
|