Neware nda binary file reader.
Project description
NewareNDA
© 2022-2024 Copyright SES AI
Author: Daniel Cogswell
Email: danielcogswell@ses.ai
Python module and command line tool for reading and converting Neware nda and ndax battery cycling files. Auxiliary temperature fields are currently supported in both formats.
Installation
To install the latest version from the PyPi package repository:
pip install --upgrade NewareNDA
To install the development branch directly from Github:
pip install git+https://github.com/Solid-Energy-Systems/NewareNDA.git@development
To install from source, clone this repository and run:
cd NewareNDA
pip install .
Usage
import NewareNDA
df = NewareNDA.read('filename.nda')
Logging
Additional test information including active mass, remarks, and BTS versions is returned via logging. The following command will print this logging information to the terminal:
import logging
logging.basicConfig()
Command-line interface:
usage: NewareNDA-cli [-h]
[-f {csv,excel,feather,hdf,json,parquet,pickle,stata}]
[-s] [-v]
[-l {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}]
[-c {chg,dchg,auto}]
in_file out_file
Script for converting Neware NDA files to other file formats. The default
output format is csv. Other formats may require installing additional
packages.
positional arguments:
in_file input file
out_file output file
options:
-h, --help show this help message and exit
-f {csv,excel,feather,hdf,json,parquet,pickle,stata}, --format {csv,excel,feather,hdf,json,parquet,pickle,stata}
-s, --software_cycle_number
Generate the cycle number field to match old versions
of BTSDA.
-v, --version show version
-l {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}, --log_level {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}
Set the logging level for NewareNDA
-c {chg,dchg,auto}, --cycle_mode {chg,dchg,auto}
Selects how the cycle is incremented.
Troubleshooting
If you encounter a key error, it is often the case that your file has a hardware setting that we have not seen before. Usually it is a quick fix that requires comparing output from BTSDA with values extracted by NewareNDA. Please start a new Github Issue and we will help debug.
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
File details
Details for the file newarenda-2024.10.1.tar.gz
.
File metadata
- Download URL: newarenda-2024.10.1.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa7b9c7a704fc628feacbf21f1f4315f6474cfa47f3c3b87a0386e37088be50c |
|
MD5 | a0d4caef69bd005bb1b9976630228e47 |
|
BLAKE2b-256 | a82450f0fa116539da7afba35047e6558634fb8a33346d6d5c6374a33eb5c8ec |
File details
Details for the file NewareNDA-2024.10.1-py3-none-any.whl
.
File metadata
- Download URL: NewareNDA-2024.10.1-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f58b931ab5b66899c7ecc0f23dd0d242440cb7f87226da5579f0c2f77fa4be0 |
|
MD5 | e456bfbca49fed914d06efc8247d7658 |
|
BLAKE2b-256 | 6cfa5317b732cafc37d35bdafc4ca5164f3cb8e18d46b9083052c89ad52c418a |