Skip to content

Conversation

@sourcery-ai
Copy link

@sourcery-ai sourcery-ai bot commented Nov 8, 2023

Pull Request #2 refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

NOTE: As code is pushed to the original Pull Request, Sourcery will
re-run and update (force-push) this Pull Request with new refactorings as
necessary. If Sourcery finds no refactorings at any point, this Pull Request
will be closed automatically.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the marco_create-tsv branch, then run:

git fetch origin sourcery/marco_create-tsv
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from marcobarilari November 8, 2023 09:03
pattern = "sub-*/ses-*/*/*" if sessions else "sub-*/*/*"
files = [v.name for v in bids_pth.glob(pattern) if "task-" in v.name]
return files
return [v.name for v in bids_pth.glob(pattern) if "task-" in v.name]
Copy link
Author

Choose a reason for hiding this comment

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

Function list_data_files refactored with the following changes:

@Remi-Gau Remi-Gau merged commit bf3e10e into marco_create-tsv Nov 8, 2023
@Remi-Gau Remi-Gau deleted the sourcery/marco_create-tsv branch November 8, 2023 09:18
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