Skip to main content

Parse data files created by CH Instruments potentiostats and Palmsens potentiostats

Project description

potentiostat-data-parser

Developer Guide

If you are new to using nbdev here are some useful pointers to get you started.

Install potentiostat_data_parser in Development mode

# make sure potentiostat_data_parser package is installed in development mode
$ pip install -e .

# make changes under nbs/ directory
# ...

# compile to have changes apply to potentiostat_data_parser
$ nbdev_prepare

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

potentiostat_data_parser-0.0.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

potentiostat_data_parser-0.0.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file potentiostat_data_parser-0.0.2.tar.gz.

File metadata

  • Download URL: potentiostat_data_parser-0.0.2.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for potentiostat_data_parser-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e9d14bd5779dbb438985317a9df6e2921ac702987972ac676dd179bfc95ab698
MD5 8797e365f91c315ba9d949b6026792bc
BLAKE2b-256 cec59f3387dd7586eea212ce9e0b451ae4bb0b3ce582113179e4db121c8ec0ce

See more details on using hashes here.

File details

Details for the file potentiostat_data_parser-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for potentiostat_data_parser-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff60d758da9822dff2f5de46b4fbe19626b9df483701bfd8714f489203348b6c
MD5 fbfb1a1f6d67748d7befc05ee59c5766
BLAKE2b-256 16925b1bf9570ca697a5d6e09ef5b9fb8db3a88edd4b16d2c1ed44901a38ec13

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