Skip to content

Fix Wairagkar2018 dataset zip extraction#1066

Open
baris-talar wants to merge 2 commits intoNeuroTechX:developfrom
baris-talar:add-finger-tapping-dataset
Open

Fix Wairagkar2018 dataset zip extraction#1066
baris-talar wants to merge 2 commits intoNeuroTechX:developfrom
baris-talar:add-finger-tapping-dataset

Conversation

@baris-talar
Copy link
Copy Markdown

@baris-talar baris-talar commented Apr 26, 2026

Fix Wairagkar2018 dataset zip extraction

Related to #904

This PR fixes an issue in the Wairagkar2018 dataset loader where
safe_extract_zip was called with incorrect argument types, causing
the dataset extraction to fail on first download.

Issue

safe_extract_zip expects a zipfile.ZipFile object and a Path, but
it was being called with string paths instead. As a result, the zip file
was not properly opened before extraction, leading to failures when
loading the dataset.

Fix

  • Added import zipfile
  • Updated extraction logic to properly open the zip file:
with zipfile.ZipFile(zip_path) as zf:
    safe_extract_zip(zf, basepath)

safe_extract_zip() expects a zipfile.ZipFile object and a Path, but was
being called with two string paths, causing extraction to fail on first
download. Add import zipfile and wrap the call correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@baris-talar
Copy link
Copy Markdown
Author

It looks like the CI workflows are awaiting approval.

Could someone approve and trigger them for this PR?

Thanks!

@bruAristimunha
Copy link
Copy Markdown
Collaborator

can you please fix the whats new file?

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.

2 participants