Skip to content

bids_preproc end-to-end MATLAB comparison hides ICA and event mismatches #454

Closed as not planned

Description

@cursor

tests/test_bids_preproc.py compares the full pipeline with atol=200 µV and does not check icaweights. Comments removed in the comment-cleanup pass recorded three gaps:

  • ds003061 is limited to run 2 because cached run 1 files hit an ICA shape mismatch.
  • pop_select sometimes keeps events on the Python side that MATLAB drops, so later stages drift.
  • PICARD icaweights are not asserted because they do not match MATLAB. The data tolerance is wide enough to absorb that (observed gaps were about 10 µV and 160 µV).

The assertions were left unchanged. Replace the 200 µV check and the skipped weight comparison with a component-aligned comparison, and fix the event-retention and run-1 shape mismatches.

Activity

  1. suraj-ranganath commented on Oct 16, 2026

    @suraj-ranganath
    Member

    Closing as superseded.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions