Skip to content

feat(CV): current density axis toggle#262

Merged
PiTrem merged 4 commits intomasterfrom
feat/247-cv-current-density-axis-toggle
Feb 28, 2026
Merged

feat(CV): current density axis toggle#262
PiTrem merged 4 commits intomasterfrom
feat/247-cv-current-density-axis-toggle

Conversation

@Nicolass67
Copy link
Contributor

This PR implements backend support for the Current / Current Density mode in the CV layout.

It introduces:

  • Parsing and persistence of new CV parameters:
    • areaValue
    • areaUnit
    • useCurrentDensity
  • Writing these parameters into the JCAMP metadata:
    • ##$CSWEAREAVALUE
    • ##$CSWEAREAUNIT
    • ##$CSCURRENTMODE
  • Automatic Y-axis label override when current density mode is enabled.
  • Dynamic Y-axis scaling and formatting when current density is active, including area-based normalization and scientific notation handling.

When useCurrentDensity is enabled, the backend converts the current to current density based on the provided electrode area and adapts both metadata and rendering accordingly.

This ensures consistent data export, correct labeling, and proper visualization behavior for CV current density mode.

@PiTrem PiTrem changed the title Feat/247 cv current density axis toggle feat(CV): current density axis toggle Feb 28, 2026
@PiTrem PiTrem merged commit 79871f9 into master Feb 28, 2026
1 check passed
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.

2 participants