Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle pagination - needed for Stieger2021 ds #674

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

Samuel-Boehm
Copy link
Contributor

When working with the Stieger2021 dataset, I encountered an issue where only the first subject's data was being downloaded. The problem I found was fs_get_file_list function wasn't properly handling the Figshare API's pagination. With this implementation, the function now retrieves all files across every page of results, ensuring complete data collection for all subjects in the dataset.

@bruAristimunha
Copy link
Collaborator

Hey @Samuel-Boehm,

Thank you so much for your PR! We are super happy to receive this one.

The issue in the CI is not related to your PR. I will fix in another PR, I am sorry for this unrelated issue.

I come back in few hours.

@Samuel-Boehm
Copy link
Contributor Author

Sorry If I made mistakes here! I am currently working on an implementation of the original BEETL dataset for MOABB and was on the way of finishing it. However, I didn't want it to end up here in the branch. I am kind of new to git and contributing to projects. I will write a new merge request for the BEETL set soon.

@bruAristimunha
Copy link
Collaborator

Hey @Samuel-Boehm,

Thank you so much for the PR! We have been back from vacation since last week, and all the PR will move faster.

If you are interested in participating more actively in the moabb discussions and helping to improve the tool and gain citations with new versions, please contact me (b.aristimunha@gmail.com), we are in need of more people for the library.

The solution is more straightforward. Could you remove the file from the URL, as reported in #677? Could you update this PR to change only the URL?

@Samuel-Boehm
Copy link
Contributor Author

Thats a ways simpler solution, I implemented it and its runs, but I did not run any tests for other datasets besides Stieger2021.

@bruAristimunha
Copy link
Collaborator

Perfect! When everything is green we apply the merge

@bruAristimunha bruAristimunha enabled auto-merge (squash) January 28, 2025 09:37
@bruAristimunha bruAristimunha merged commit 0c2cd0a into NeuroTechX:develop Jan 28, 2025
10 of 12 checks passed
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