NewareNDA
Python module and command line tool for reading and converting Neware nda and ndax battery cycling data files.
Install / Use
/learn @Solid-Energy-Systems/NewareNDAREADME
NewareNDA
© 2022-2024 Copyright SES AI <br>Author: Daniel Cogswell <br>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.
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
