Open and process battery charger log data files
Project description
galvani
Read proprietary file formats from electrochemical test stations.
Usage
Bio-Logic .mpr files
Use the MPRfile
class from BioLogic.py (exported in the main package)
from galvani import BioLogic
import pandas as pd
mpr_file = BioLogic.MPRfile('test.mpr')
df = pd.DataFrame(mpr_file.data)
Arbin .res files
Use the ./galvani/res2sqlite.py
script to convert the .res file to a sqlite3 database with the same schema, which can then be interrogated with external tools or directly in Python.
For example, to extract the data into a pandas DataFrame (will need to be installed separately):
import sqlite3
import pandas as pd
from galvani.res2sqlite import convert_arbin_to_sqlite
convert_arbin_to_sqlite("input.res", "output.sqlite")
with sqlite3.connect("output.sqlite") as db:
df = pd.read_sql(sql="select * from Channel_Normal_Table", con=db)
This functionality requires MDBTools to be installed on the local system.
Installation
The latest galvani releases can be installed from PyPI via
pip install galvani
The latest development version can be installed with pip
directly from GitHub:
pip install git+https://github.com/echemdata/galvani
Development installation and contributing
If you wish to contribute to galvani, please clone the repository and install the testing dependencies:
git clone git@github.com:echemdata/galvani
cd galvani
pip install -e .\[tests\]
Code can be contributed back via GitHub pull requests and new features or bugs can be discussed in the issue tracker.
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
File details
Details for the file galvani-0.4.1.tar.gz
.
File metadata
- Download URL: galvani-0.4.1.tar.gz
- Upload date:
- Size: 5.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f57b32c1dc615af362141fa6097dc98688b7378b74af8d70fa28a75e73a176f |
|
MD5 | 4189cf207024bf15ffcf146ae98a210b |
|
BLAKE2b-256 | caaaf02c8ff891778c579d304486ca269858500254d519618da04d639f2e0915 |
File details
Details for the file galvani-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: galvani-0.4.1-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba568237194c394d5262367626e8555854fe69c1fa46e663a4481a73c6a3395f |
|
MD5 | 9fb5b53271cacd9782e5717481e896b7 |
|
BLAKE2b-256 | 7d7828fc617c325d289e7871209bd98ad647c2962a857b9e2b7ed8ecb9c39a64 |