Skip to content

Fix SampleDataset subset mappings - #1211

Open
DarylOkeke wants to merge 2 commits into
sunlabuiuc:masterfrom
DarylOkeke:fix/sample-dataset-subset-mappings
Open

Fix SampleDataset subset mappings#1211
DarylOkeke wants to merge 2 commits into
sunlabuiuc:masterfrom
DarylOkeke:fix/sample-dataset-subset-mappings

Conversation

@DarylOkeke

@DarylOkeke DarylOkeke commented Aug 27, 2026

Copy link
Copy Markdown

SampleDataset.subset() kept the parent dataset’s patient and record mappings, leaving stale or out-of-range indices after splitting. This rebuilds both mappings with subset-local indices for disk-backed and in-memory datasets. A regression test covers reordered and nested subsets.

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.

1 participant