Skip to content

Fix empty plots for echem block when the data is all rest cycles - #2000

Open
be-smith wants to merge 3 commits into
OMWalmsley/location-route-and-location-traitfrom
bes/empty_echem_plot_fix
Open

Fix empty plots for echem block when the data is all rest cycles#2000
be-smith wants to merge 3 commits into
OMWalmsley/location-route-and-location-traitfrom
bes/empty_echem_plot_fix

Conversation

@be-smith

Copy link
Copy Markdown
Member

Adds a check to see if the echem file is all rest, defined by having all 0's as capacity values. In this case voltage against time will be plotted instead by default to prevent not rendering a plot. Also raises a warning explaining that there is no charge/discharge cycles detected in the data.

Also adds a synthetic all rest ivium file and uses it to run tests checking these new features.

@be-smith
be-smith changed the base branch from main to ml-evs/bump-pydantic-final-final August 10, 2026 20:06
@be-smith
be-smith marked this pull request as ready for review August 12, 2026 10:08
@ml-evs
ml-evs changed the base branch from ml-evs/bump-pydantic-final-final to OMWalmsley/location-route-and-location-trait August 12, 2026 13:36
@ml-evs
ml-evs force-pushed the bes/empty_echem_plot_fix branch from 9e7402e to c35a962 Compare August 12, 2026 15:24
@cypress

cypress Bot commented Aug 12, 2026

Copy link
Copy Markdown

datalab    Run #5333

Run Properties:  status check passed Passed #5333  •  git commit e0c67984d9 ℹ️: Merge f6480d40132a41f5308b2ea64b887581f96bd7b4 into 2b4cf4eac0fecf63293fae3ceb7d...
Project datalab
Branch Review bes/empty_echem_plot_fix
Run status status check passed Passed #5333
Run duration 16m 42s
Commit git commit e0c67984d9 ℹ️: Merge f6480d40132a41f5308b2ea64b887581f96bd7b4 into 2b4cf4eac0fecf63293fae3ceb7d...
Committer Ben Smith
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 94
View all changes introduced in this branch ↗︎

@ml-evs
ml-evs force-pushed the bes/empty_echem_plot_fix branch from c35a962 to e53a6c7 Compare August 13, 2026 22:50
…me against voltage. Raise useful error for dQ/dV, cycle summary, dV/dQ rather than render meaningless plots.
…lot for this file is voltage against time. Add tests to ensure dQ/dV, dV/dQ and cycle summary modes error properly
@ml-evs
ml-evs force-pushed the bes/empty_echem_plot_fix branch from e53a6c7 to f6480d4 Compare August 13, 2026 23:14
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.36%. Comparing base (66f1042) to head (f6480d4).

Additional details and impacted files
@@                               Coverage Diff                                @@
##           OMWalmsley/location-route-and-location-trait    #2000      +/-   ##
================================================================================
+ Coverage                                         80.34%   80.36%   +0.02%     
================================================================================
  Files                                                84       84              
  Lines                                              7841     7849       +8     
================================================================================
+ Hits                                               6300     6308       +8     
  Misses                                             1541     1541              
Files with missing lines Coverage Δ
pydatalab/src/pydatalab/apps/echem/blocks.py 81.32% <100.00%> (+0.07%) ⬆️
pydatalab/src/pydatalab/bokeh_plots.py 81.42% <100.00%> (+0.36%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant