-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MRG: Make get_head_mri_trans() respect datatype and suffix attributes…
… of MEG BIDSPath (#969) * Make get_head_mri_trans() respect datatype and suffix attributes get_head_mri_trans() currently blindly replaces the datatype and suffix of the provided MEG BIDSPath with 'meg'. However, when working with derivative data, the suffix might be different, causing the function to fail as it will create a BIDSPath that points to a non-existent file. The change here makes it such that if the provided MEG BIDSPath has a suffix and / or datatype attribute set, they will not be modified. Only if the attributes are not set, we will fall back to 'meg'. * Add a test to convince Alex * Update changelog * flake * Implement changes discussed with Alex * Update docstring * Ensure we're working with head coords * Update another test * Simplify and cleanups * Fix * Style
- Loading branch information
1 parent
d298752
commit 048bd0e
Showing
5 changed files
with
127 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters