Skip to content

Fix: ICA collected plot direction for line layouts + both (#821) - #835

Merged
jepegit merged 3 commits into
masterfrom
cursor/821-ica-plotter-direction-both-a438
Aug 4, 2026
Merged

Fix: ICA collected plot direction for line layouts + both (#821)#835
jepegit merged 3 commits into
masterfrom
cursor/821-ica-plotter-direction-both-a438

Conversation

@jepegit

@jepegit jepegit commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Summary

Collected ICA line plots (layout="per_cell") ignored direction (only film filtered), and ica_plotter silently coerced direction="both" to charge via print.

Changes

  • _select_direction("both") leaves the frame unchanged; charge/discharge filter as before.
  • sequence_plotter applies direction filtering for fig_pr_cell / fig_pr_cycle as well as film.
  • ica_plotter accepts charge / discharge / both; invalid values log a warning and coerce to charge.
  • Plotly both: set line_dash by direction so half-cycles do not join.
  • ica_plotter accepts cycles= forwarded from collected_plot without clashing with cycles=.
  • Tests in tests/test_collected_ica_direction.py; note in plotting-collected.md; HISTORY.md Unreleased bullet.

Test plan

  • MPLBACKEND=Agg uv run pytest tests/test_collected_ica_direction.py -q — 6 passed
  • MPLBACKEND=Agg uv run pytest -m essential -q — 665 passed

Closes #821.

Open in Web Open in Cursor 

cursoragent and others added 3 commits August 4, 2026 18:50
Track collected ICA line-layout direction filtering and direction='both'
under .issueflows before implementation.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Filter half-cycles for fig_pr_cell/fig_pr_cycle (not only film), allow
direction='both' with Plotly line_dash so lobes do not join, and warn
instead of print on invalid direction values.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
Record the ICA collected direction fix in HISTORY, register essential
tests, and archive the issue-flow group as done.

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
@cursor
cursor Bot marked this pull request as ready for review August 4, 2026 18:54
@jepegit
jepegit enabled auto-merge (squash) August 4, 2026 18:55
@jepegit
jepegit merged commit d7acf09 into master Aug 4, 2026
7 checks passed
@jepegit
jepegit deleted the cursor/821-ica-plotter-direction-both-a438 branch August 4, 2026 18:57
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.

ICA plotter: honour direction for line layouts; support direction='both'

2 participants