Skip to content

Follow-up test coverage from the PR #252/#256 review residuals #261

Closed

Description

@neuromechanist

Two small test gaps the fresh-context reviews of #252 and #256 flagged as residual risk (both judged low-probability, neither blocking merge). Filing so they are tracked rather than remembered:

  • Annotation rejection x rank reduction: no automated test fits an annotated Raw with pcakeep (or auto rank detection) through AMICAICA and checks good_sample_mask_/scoring alignment. The mask logic is architecturally independent of PCA (it operates on the Raw timeline before the backend fit) and the reporter verified the combination manually on 306-ch rank-70 Elekta data, but the interaction is untested in CI. One test on the real sample EEG with pcakeep + bad_* annotations covers it.
  • get_sensor_mixing_matrix() on a degenerate (non-finite-sphere) model: Make share_comps work on rank-reduced fits #256 unified the sphere pseudo-inverse behind _pinv_sphere(), which now raises a clear RuntimeError naming the degenerate fit; only the _identify_shared_comps route is tested for that message. One direct test pins the public-API route.

Related: #251, #252, #253, #256.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions