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.1.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.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: potentiostat_data_parser-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 76d795555b1eeec5fe838947415a357e2d36eda5fed027b62db52946765dea0d
MD5 fee8e4939d3791fcc62fa6d8d3cf6b52
BLAKE2b-256 b661356317e19a02b42128be5290e4b8271ef9af5198abb00bc1875bcac67714

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for potentiostat_data_parser-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 acfd280402d4f8ba5943a758e2301886fe0c55e89f56546466febcdb4a632112
MD5 31208bdda796dc73c262831f35ee0fe7
BLAKE2b-256 ddfa0a2d0905533c918f63f9fe22a2fe0e8c1acd9a26d92809274d1109da30da

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