Skip to content

Reorganize imaging_lib into mri module#1408

Open
MaximeBICMTL wants to merge 1 commit intoaces:mainfrom
MaximeBICMTL:mri-submodule
Open

Reorganize imaging_lib into mri module#1408
MaximeBICMTL wants to merge 1 commit intoaces:mainfrom
MaximeBICMTL:mri-submodule

Conversation

@MaximeBICMTL
Copy link
Copy Markdown
Contributor

@MaximeBICMTL MaximeBICMTL commented Apr 3, 2026

Description

Before #1389, the lib.mri module was used by the BIDS MRI importer, but that code has now been moved to lib.import_bids_dataset. As such, we can use the lib.mri module for pipeline-agnostic MRI-specific code.

Changelog

  • Rename lib.imaging_lib to lib.mri.
  • Rename lib.imaging_lib.mri_scanner to lib.mri.scanner.
  • Moved lib.imaging_lib.parameter to lib.parameter (since it is not specific to MRI).

Note that the lib.imaging_lib module does not exist in LORIS Python 27 was created in the LORIS Python 28/29 cycle. So this PR in itself is not a breaking change (but functions that were moved to lib.imaging_lib during that cycle are now moved to lib.mri instead).

@MaximeBICMTL MaximeBICMTL added Category: Refactor Issue or PR that aims to improve the existing code Complexity: Simple Issue or PR that should be simple to implement, review, or test labels Apr 3, 2026
@github-actions github-actions bot added the Language: Python Issue or PR related to the Python codebase label Apr 3, 2026
@MaximeBICMTL MaximeBICMTL requested a review from cmadjar April 3, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Refactor Issue or PR that aims to improve the existing code Complexity: Simple Issue or PR that should be simple to implement, review, or test Language: Python Issue or PR related to the Python codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant