Skip to content

Native summarizer: verify step_specifications application + exclude_step_types value parity #554

Description

@jepegit

Context

Surfaced landing the native-headers flip (Stage 5a, native_schema default). After the naming migration is done, four tests fail on native-summarizer behavior (not column names):

  • test_load_step_specs_short (3 params): after load_step_specifications(...), the resulting step-table step_type/info values do not match the legacy spec expectations. The spec file carries legacy cycle/step/type columns; the native make_step_table(step_specifications=...) path may not apply them the same way (cycle/step matching or type/info representation — native uses '' where legacy used 'nan').
  • test_make_summary_exclude_step_types: with exclude_step_types=["cv_"], the native summary's per-cycle charge_capacity differs from base - cv_deltas (the test's independent model). Native exclude_step_types may compute a different exclusion than the legacy behavior the test mirrors.

Status

Stage 5a xfails these 4 (strict=False) referencing this issue so the flip can land; the naming migration itself is complete. These are to verify — they may be real native-summarizer bugs or intended behavioral differences to document in the parity exception list.

Work

  • Trace step_specifications from load_step_specificationsmake_core_step_table → cellpycore summarizers.make_step_table: confirm cycle/step matching and type/info assignment on native step tables.
  • Confirm native exclude_step_types semantics vs the legacy (last-first) per-cycle delta model.
  • Either fix (if bugs) and remove the xfails, or document as intended divergences (parity exception list) and convert to native-expectation assertions.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    v2cellpy v2.0 epic work - PRs should target the master branch

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions