Skip to main content

A Python package for battery cell data analysis and visualization.

Project description

AESB: Advanced Energy Storage Analytics

aesb is a Python package for fetching, processing, analyzing, and visualizing battery cell data from various manufacturing databases. It is designed to help engineers and data scientists monitor battery quality, identify anomalies, and understand cell behavior.

Key Features

  • Data Fetching:
    • Connects to multiple database systems (MySQL, Doris) to retrieve battery cell data.
    • Fetches data based on cell IDs, date ranges, or specific manufacturing processes (CP).
    • Retrieves detailed FTP curve data for in-depth analysis.
    • Handles data from different manufacturing bases (e.g., 'jy', 'sy', 'ordos').
  • Data Processing:
    • Removes rework data to ensure analysis is based on first-pass results.
    • Enriches data with defect information.
    • Calculates dQ/dV, a key metric for battery health analysis.
  • Data Visualization:
    • Generates various plots to visualize cell characteristics and compare them with their peers.
    • Analyzes and plots feature distributions to identify outliers.
    • Visualizes FTP curves to understand charging and discharging behavior.
  • Data Management:
    • Provides a unified BatteryDataManager class to streamline data operations.
    • Allows uploading processed data back to a database.
    • Enables marking cells with defect codes directly through an API.

Installation

To install the project, you can use pip:

pip install .

Usage

To use the project, you can import the package and use the BatteryDataManager class:

from aesb import BatteryDataManager

# Initialize the data manager for a specific manufacturing base and line
dm = BatteryDataManager(base='jy', wip_line='JYP1')

# Get data for a list of cell IDs
cell_data = dm.get_data_by_cell_ids(['cell_id_1', 'cell_id_2'], cp_names=['CAP', 'FOR'])

# Get FTP curve data for a cell
curve_data = dm.get_curves_by_cell_ids(['cell_id_1'], proc='CAP')

# Analyze a cell and visualize its characteristics
dm.analyze_cell_cp('cell_id_1')

Development

To set up the development environment, first create a virtual environment:

python3 -m venv venv
source venv/bin/activate

Then, install the dependencies:

pip install -r requirements.txt

To run the tests:

python3 -m pytest

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

aesb-2.0.0.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

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

aesb-2.0.0-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file aesb-2.0.0.tar.gz.

File metadata

  • Download URL: aesb-2.0.0.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for aesb-2.0.0.tar.gz
Algorithm Hash digest
SHA256 78df52ca019248dc220138489ae195eb1cb2790855e572eeefb7f1a023377d51
MD5 3538df64e1ef1a6f515f82246504b5d6
BLAKE2b-256 f155c5f290be3fae4470faf8dcf635b41e859c27dec9b15afcfef0ee0e403519

See more details on using hashes here.

File details

Details for the file aesb-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: aesb-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for aesb-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 118ddd7b7c826b204009a1680c4165501f5e56756543f2e950d938b794c8b5fb
MD5 154f49c9c483586b7a9acd25b0415eb1
BLAKE2b-256 4ee53b4de9704e4372517ded2a2da2fad5bb0f041c12f2a4fbb1d042bfee06de

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