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

Create folders return split by datatype #382

Merged
merged 11 commits into from
Jun 10, 2024

Conversation

JoeZiminski
Copy link
Member

This PR splits the output of create_folders by datatype. Now a Dict is returned with datatypes as keys and a list of created paths as values. If no datatype is created the dict keys are sub or ses.

Test and docs are updated. closes #374.

@JoeZiminski JoeZiminski requested a review from niksirbi May 1, 2024 19:49
Copy link
Member

@niksirbi niksirbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @JoeZiminski, I spotted a few issues that slipped through in this one. Luckily they are trivial to fix.

tests/test_utils.py Outdated Show resolved Hide resolved
datashuttle/datashuttle.py Outdated Show resolved Hide resolved
docs/source/pages/tutorials/getting_started.md Outdated Show resolved Hide resolved
datashuttle/utils/folders.py Outdated Show resolved Hide resolved
tests/tests_integration/test_create_folders.py Outdated Show resolved Hide resolved
@JoeZiminski JoeZiminski requested a review from niksirbi June 10, 2024 10:39
@JoeZiminski
Copy link
Member Author

Thanks @niksirbi for these catches 😱 a lot of mistakes! These should all be fixed now, I added a test to cover the previously broken behaviour. Cheers!

Copy link
Member

@niksirbi niksirbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, that's why re review all PRs 😉
LGTM now.

@JoeZiminski JoeZiminski force-pushed the create_folders_return_split_by_datatype branch from 6f1f1b9 to 3a69bfa Compare June 10, 2024 13:02
@JoeZiminski JoeZiminski force-pushed the create_folders_return_split_by_datatype branch from 362b0b1 to 2b927f7 Compare June 10, 2024 13:13
@JoeZiminski JoeZiminski merged commit 5e8663b into main Jun 10, 2024
23 checks passed
@JoeZiminski JoeZiminski deleted the create_folders_return_split_by_datatype branch June 10, 2024 14:52
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.

create_folders should split returned paths by datatype
2 participants