Skip to content

Sync cardiac MRI example with PyKale's pandas 3 fix - #5

Draft
cmanjah wants to merge 1 commit into
mainfrom
fix/cmri-pandas3-readonly
Draft

cmanjah wants to merge 1 commit into
mainfrom
fix/cmri-pandas3-readonly

Conversation

@cmanjah

@cmanjah cmanjah commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Re-syncs cardiac/cardiac_mri_diagnosis from PyKale main with scripts/migrate_examples.py, which brings in the pandas 3 read-only fix from pykale/pykale#624. The tutorials copy now matches every PyKale example, ahead of removing examples/ from PyKale in pykale/pykale#628.

Type of change

  • New tutorial
  • Narrative written for an existing stub (draft: true → false)
  • Fix to a migrated example
  • Infrastructure (gallery, scripts, CI)
  • Documentation

Checklist

  • make validate passes
  • make html-noplot passes
  • pre-commit run --all-files passes
  • No dataset files committed
  • If a copied example changed, the edit is recorded in POST_MIGRATION_PATCHES rather than
    applied by hand (not needed: the change comes from upstream through the sync)

pykale/pykale#624 changed cmri_mpca to copy the "Group" column with
to_numpy(copy=True), because pandas 3 returns a read-only view and the
in-place relabelling then fails. Re-running migrate_examples.py
against PyKale main brings that fix here; it is the only difference
between the two copies, ahead of removing examples from PyKale
(pykale/pykale#628).
@cmanjah cmanjah added the bug Something isn't working label Nov 25, 2026

This branch has not been deployed

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant