Skip to main content

Neware nda binary file reader.

Project description

release NewareNDA regression tests Coverage Status

NewareNDA

© 2022-2024 Copyright SES AI
Author: Daniel Cogswell

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.

This repository is a fork for independent development of the original NewareNDA project.

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/d-cogswell/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

newarenda-2026.2.2.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

newarenda-2026.2.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file newarenda-2026.2.2.tar.gz.

File metadata

  • Download URL: newarenda-2026.2.2.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for newarenda-2026.2.2.tar.gz
Algorithm Hash digest
SHA256 11db2f526edf9c4e475e741d5213877ae8740d2b5eceaeb561dd01528b7ff9d0
MD5 96c8678e549050a8be927f3e8f32a96e
BLAKE2b-256 0616a330b8e1d0070e994625eaff9c2c4dff4279fa47deba7af390e3d5bb15a8

See more details on using hashes here.

File details

Details for the file newarenda-2026.2.2-py3-none-any.whl.

File metadata

  • Download URL: newarenda-2026.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for newarenda-2026.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2589aa3ac4f092efb387b6ddf863e4232d66ec83847fdce819fc515dac4b4418
MD5 aba53bed444050eef1c045f8b4a3f223
BLAKE2b-256 3344126e85c6eb4466c6d733f88549acc520928a4cc7ea20fcd90e9f50dbafd5

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