Open and process battery charger log data files: fork of original package `galvani`
Project description
galvani
[!NOTE]
This repository is an approximate mirror of https://codeberg.org/echemdata/galvani (originally developed at https://github.com/echemdata/galvani), though the syncing is not automatic. Versions deployed to PyPI package from this repository as thegalvani-mirrormay not match those of thegalvanipackage itself. Documentation may still contain out of date references to the original repository. It is unlikely new features will be developed in this mirror, changes will only involve build system, deployment and testing improvements, so please direct your development attention to the codeberg repo linked above.
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 (see note about git-lfs below):
GIT_LFS_SKIP_SMUDGE=1 pip install git+https://github.com/echemdata/galvani
Development installation and contributing
[!WARNING]
This project uses Git Large File Storage (LFS) to store its test files, however the LFS quota provided by GitHub is frequently exceeded. This means that anyone cloning the repository with LFS installed will get failures unless they set the
GIT_LFS_SKIP_SMUDGE=1environment variable when cloning. The full test data from the last release can always be obtained by downloading the GitHub release archives (tar or zip), at https://github.com/datalab-org/galvani-mirror/releases/latestIf you wish to add test files, please ensure they are as small as possible, and take care that your tests work locally without the need for the LFS files. Ideally, you could commit them to your fork when making a PR, and then they can be converted to LFS files as part of the review.
If you wish to contribute to galvani, please clone the repository and install the testing dependencies:
git clone git@github.com:datalab-org/galvani-mirror
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. It may also be useful to check the original issue tracker for galvani.
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
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 datalab_org_galvani-0.5.1rc1.tar.gz.
File metadata
- Download URL: datalab_org_galvani-0.5.1rc1.tar.gz
- Upload date:
- Size: 56.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
412115098af23494e80c9f98cfe2677bdc45824e3947709bd03e14acfc1407e2
|
|
| MD5 |
106825948bd595767171e2cd1e8112b2
|
|
| BLAKE2b-256 |
371f811fcece929053a9f0ccbef15892ce15aad8f6986e5a7427fabbfb38e5a8
|
Provenance
The following attestation bundles were made for datalab_org_galvani-0.5.1rc1.tar.gz:
Publisher:
release.yml on datalab-org/galvani-mirror
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datalab_org_galvani-0.5.1rc1.tar.gz -
Subject digest:
412115098af23494e80c9f98cfe2677bdc45824e3947709bd03e14acfc1407e2 - Sigstore transparency entry: 238323223
- Sigstore integration time:
-
Permalink:
datalab-org/galvani-mirror@73eae597045aa4e7923bc759e62ad07da6569d09 -
Branch / Tag:
refs/tags/v0.5.1-rc.1 - Owner: https://github.com/datalab-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@73eae597045aa4e7923bc759e62ad07da6569d09 -
Trigger Event:
release
-
Statement type:
File details
Details for the file datalab_org_galvani-0.5.1rc1-py3-none-any.whl.
File metadata
- Download URL: datalab_org_galvani-0.5.1rc1-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c69d957a757a4fab4baaed579d047ef62d29ed587d21e0a3bd7e51c3951f3a2c
|
|
| MD5 |
8df28144d6c8a4d6667981080d3b7e73
|
|
| BLAKE2b-256 |
eadf8696b3f97703a4015bbd3a96aa126abf35d9601efc84c8a117aa2113c55b
|
Provenance
The following attestation bundles were made for datalab_org_galvani-0.5.1rc1-py3-none-any.whl:
Publisher:
release.yml on datalab-org/galvani-mirror
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datalab_org_galvani-0.5.1rc1-py3-none-any.whl -
Subject digest:
c69d957a757a4fab4baaed579d047ef62d29ed587d21e0a3bd7e51c3951f3a2c - Sigstore transparency entry: 238323227
- Sigstore integration time:
-
Permalink:
datalab-org/galvani-mirror@73eae597045aa4e7923bc759e62ad07da6569d09 -
Branch / Tag:
refs/tags/v0.5.1-rc.1 - Owner: https://github.com/datalab-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@73eae597045aa4e7923bc759e62ad07da6569d09 -
Trigger Event:
release
-
Statement type: