Skip to content

Port summary prepare path and flip summary_plot to prepare→spec→render (#638)#644

Merged
jepegit merged 5 commits into
masterfrom
cursor/638-summary-prepare-render-4efd
Jul 23, 2026
Merged

Port summary prepare path and flip summary_plot to prepare→spec→render (#638)#644
jepegit merged 5 commits into
masterfrom
cursor/638-summary-prepare-render-4efd

Conversation

@jepegit

@jepegit jepegit commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #638 (epic #567 Stage 1): port summary prepare into cellpy.plotting.prepare, emit a real FigureSpec, and flip public summary_plot onto prepare → spec → PlotlyBackend.render.

Changes

  • New cellpy/plotting/context.py — minimal CellContext / from_source
  • New cellpy/plotting/prepare/summary.py — preparer + (frame, FigureSpec)
  • PlotlyBackend.render absorbs former PlotlyPlotBuilder (incl. no-formation); provisional CELLPY_SUMMARY_PLOTLY_SPEC removed
  • summary_plot orchestrates context → registry → prepare → render; SeabornPlotBuilder kept until Matplotlib backend; retire SeabornPlotBuilder; unify backend= #639 on the same frame
  • Deleted SummaryPlotDataPreparer / PlotlyPlotBuilder from plotutils
  • Design notes + tests/test_summary_prepare.py
  • HISTORY Unreleased bullet; issue docs archived under .issueflows/03-solved-issues/

Test plan

uv sync --extra batch
MPLBACKEND=Agg uv run pytest tests/test_summary_prepare.py tests/test_plotly_backend_layout.py tests/test_figure_specs.py -q
MPLBACKEND=Agg uv run pytest -m essential --ignore=tests/test_arbin_variants_two_stage.py

Closeout verified: figure-spec/prepare suites + essential gate green.

Open in Web Open in Cursor 

cursoragent and others added 5 commits July 23, 2026 05:07
Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Draft approach for extracting prepare/summary.py, completing
PlotlyBackend.render, and switching public summary_plot onto the
prepare→spec→render path while keeping SeabornPlotBuilder until #639.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Extract SummaryPlotDataPreparer into cellpy.plotting.prepare.summary,
emit a real FigureSpec, and draw interactive figures through
PlotlyBackend.render. Delete PlotlyPlotBuilder and the provisional
CELLPY_SUMMARY_PLOTLY_SPEC dual path; keep SeabornPlotBuilder on the
same prepared frame until #639.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Record the Unreleased HISTORY bullet and move issue638 tracking files
to 03-solved-issues with Done checked after green closeout tests.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
@jepegit
jepegit marked this pull request as ready for review July 23, 2026 05:41
@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@jepegit
jepegit enabled auto-merge (squash) July 23, 2026 05:41
@jepegit
jepegit merged commit 0ff70d4 into master Jul 23, 2026
6 checks passed
@jepegit
jepegit deleted the cursor/638-summary-prepare-render-4efd branch July 23, 2026 05:41
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.

Port summary prepare path and flip summary_plot to prepare→spec→render

2 participants