Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ share/python-wheels/
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
# Unit test / coverage reports / in progress
inprogress/
references/
reports/
htmlcov/
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
## [Unreleased](https://github.com/NatLabRockies/ampworks)

### New Features
- New `interactive_plotly` and `interactive_bokeh` methods with `kind` line/scatter option ([#31](https://github.com/NatLabRockies/ampworks/pull/31))
- New hidden `auxiliary` module for repeated logic across package (only for devs, for now) ([#30](https://github.com/NatLabRockies/ampworks/pull/30))

### Deprecations
- `interactive_xy_plot` deprecated in favor of `interactive_plotly` ([#31](https://github.com/NatLabRockies/ampworks/pull/31))

### Optimizations
None.

### Bug Fixes
None.
- Extra tabs in some `.txt` files were creating read errors, now ignore ragged columns ([#31](https://github.com/NatLabRockies/ampworks/pull/31))

### Chores
- Use base class `_RangeLabel` for both cycle and section labels ([#29](https://github.com/NatLabRockies/ampworks/pull/29))
Expand Down
7 changes: 4 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,12 @@
# to keep in the ampworks documentation. The rest is excluded.

dataset_keep = [
'zero_time',
'zero_below',
'downsample',
'enforce_monotonic',
'interactive_xy_plot',
'interactive_plotly',
'interactive_bokeh',
'zero_below',
'zero_time',
]

richres_keep = ['copy']
Expand Down
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ build-backend = "setuptools.build_meta"
name = "ampworks"
readme = "README.md"
dynamic = ["version"]
description = "Processing and visualization tools for battery experiments."
keywords = ["battery", "data", "analysis", "ICA", "dQdV", "GITT", "ICI"]
description = "Battery data analysis and visualization tools."
keywords = [
"battery", "data", "analysis", "model", "degradation", "ecm", "spm", "p2d",
"parameters", "visualization", "dqdv", "gitt", "ici", "hppc", "ocv",
]
requires-python = ">=3.10,<3.15"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
Expand All @@ -33,9 +36,11 @@ dependencies = [
"tqdm",
"xlrd",
"numpy",
"bokeh",
"pandas",
"polars",
"plotly",
"IPython",
"pyarrow",
"seaborn",
"openpyxl",
Expand Down
6 changes: 3 additions & 3 deletions src/ampworks/_auxiliary.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING, Sequence
from typing import TYPE_CHECKING

from scipy.integrate import cumulative_trapezoid

Expand Down Expand Up @@ -78,7 +78,7 @@ def _calc_soc(data: amp.Dataset, charging: bool | None = None) -> None:

def _calc_relative_time(
data: amp.Dataset,
groupby_cols: str | Sequence[str],
groupby_cols: str | list[str],
col_name: str = 'RelativeTime',
) -> None:
"""
Expand All @@ -93,7 +93,7 @@ def _calc_relative_time(
----------
data : Dataset
DataFrame with a 'Seconds' column, and columns needed for grouping.
groupby_cols : str or Sequence[str]
groupby_cols : str or list[str]
Column names to group by before computing relative time.
col_name : str, optional
Name of the output column. Defaults to `'RelativeTime'`.
Expand Down
Loading
Loading