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

Add _check_top_level_folder option. #381

Merged
merged 3 commits into from
May 2, 2024
Merged

Conversation

JoeZiminski
Copy link
Member

This PR does a basic check on the top_level_folder input to create_folders and upload_custom / download_custom. These three methods it is easy to accidently put the subject / session in first.

This is not tested as very small, and is essentially a sticking plaster for a better way of doing argument validation outlined in #380. No documentation is required.

@JoeZiminski JoeZiminski requested a review from niksirbi May 1, 2024 19:49
datashuttle/datashuttle.py Outdated Show resolved Hide resolved
@JoeZiminski JoeZiminski merged commit 69f8a84 into main May 2, 2024
21 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.

Raise proper error if first argument to create or transfer function is not a top-level folder
2 participants