Skip to content

Conversation

@MaximeBICMTL
Copy link
Contributor

@MaximeBICMTL MaximeBICMTL commented Jan 8, 2026

Description

Small improvements to the utilities module extracted from #1335.

Details

  • Move path-related functions (= no file system operation) out of lib.util.fs into a new lib.util.path module.
  • Re-order parameters of iterator/collection functions such that the iterator/collection is always the first parameter, which is arguably more intuitive (can expand on this if needed).
  • Note that all the changed/moved functions in this PR are actually not used in the codebase yet(they were extracted from a previous version of MEG BIDS importer #1335), so there is no need to change the call sites . However, I'd like to extract other things from MEG BIDS importer #1335 that build upon those, hence this PR first.

@github-actions github-actions bot added the Language: Python Issue or PR related to the Python codebase label Jan 8, 2026
@MaximeBICMTL MaximeBICMTL added Complexity: Simple Issue or PR that should be simple to implement, review, or test Package: Utilities PR or issue related to the LORIS-agnostic utilities Language: Python Issue or PR related to the Python codebase and removed Language: Python Issue or PR related to the Python codebase labels Jan 8, 2026
@MaximeBICMTL MaximeBICMTL changed the title Improve utilities Miscellaneous utility improvements Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complexity: Simple Issue or PR that should be simple to implement, review, or test Language: Python Issue or PR related to the Python codebase Package: Utilities PR or issue related to the LORIS-agnostic utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant