Skip to content
New issue

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

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

Already on GitHub? # to your account

[ENH]: Unix path expansion directives support for PatternDataGrabber #345

Merged
merged 4 commits into from
May 22, 2024

Conversation

synchon
Copy link
Member

@synchon synchon commented May 21, 2024

  • description of feature/fix
  • tests added/passed
  • add an entry for the latest changes

This PR adds support for specifying Unix path expansion directives like [], [!] for PatternDataGrabber patterns. This is an improvement which is needed for supporting FreeSurfer data type. For example, fsaverage directory is at the same level as subjects like sub-0001 for AOMIC datasets and [!f] allows to not glob the fsaverage directory without overriding get_elements() method. As the .mgz and other outputs of FreeSurfer are not unique by subject (and/or task / session) prefix, globbing doesn't work as usual (at least for the AOMIC datasets). This also enables one to have the pattern: .../T1.mg[z] to make it work.

@synchon synchon self-assigned this May 21, 2024
@synchon synchon added enhancement New feature or request dataset Issues or pull requests related to datagrabbers or datasets labels May 21, 2024
@synchon synchon added this to the 0.0.5 (alpha 4) milestone May 21, 2024
@synchon
Copy link
Member Author

synchon commented May 21, 2024

Needs to go before #344

@synchon synchon requested a review from fraimondo May 21, 2024 13:39
Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (299b471) to head (f8f2c9f).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #345   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            1         1           
=========================================
  Hits             1         1           
Flag Coverage Δ
docs 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link

github-actions bot commented May 21, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-05-22 17:37 UTC

Copy link
Contributor

@fraimondo fraimondo left a comment

Choose a reason for hiding this comment

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

Can you also improve the docs to reflect this change?

@synchon synchon force-pushed the feat/unix-path-expansion-pattern-dg branch from 3bbf98b to 80a5a4a Compare May 22, 2024 13:25
@synchon synchon requested a review from fraimondo May 22, 2024 14:11
@synchon synchon merged commit 52ab2fd into main May 22, 2024
18 of 23 checks passed
@synchon synchon deleted the feat/unix-path-expansion-pattern-dg branch May 22, 2024 17:18
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
dataset Issues or pull requests related to datagrabbers or datasets enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants