-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Copy BEM surfaces by default (don't symlink) #10531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or 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
Several (all?) Windows users attenting a workshop we hosted yesterday were running into issues when working with BEM surfaces we had shared with them as part of a FreeSurfer subjects directory. The reason was that transferring the symlinks turned out to be problematic, and this users ended up with invalid files. They had to manually copy over the BEM surfaces from the `bem/flash` or `bem/watershed` (?) directories to `bem/` and rename them. Since our collaborators are working in highly heterogenous settings (macOS, Linux, Windows), this is indeed a huge problem for data sharing, and it's not obvious at all to a common user WHY things are not working as expected. I therefore here propose an API change without deprecation cycle, changing the default value of the `make_*_bem()` functions' `copy` parameter from `False` to `True`, to always create a copy by default (and not a symlink). I'd further like to propose we change our sample data accordingly, getting rid of the symbolic links for the BEM surfaces there as well. I'm happy to discuss this at today's office hour. cc @agramfort
agramfort
reviewed
Apr 15, 2022
Member
agramfort
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Member
Author
|
This is ready for review. I would even opt for backporting this to the 1.0 branch. |
agramfort
approved these changes
Apr 15, 2022
Member
Author
|
I tested this locally and it seems to be doing the Right Thing. |
larsoner
approved these changes
Apr 15, 2022
larsoner
pushed a commit
that referenced
this pull request
Apr 15, 2022
larsoner
added a commit
to wmvanvliet/mne-python
that referenced
this pull request
Apr 19, 2022
* upstream/main: (40 commits) FIX: Flake (mne-tools#10540) FIX: Correct link (mne-tools#10536) DOC: Update installers (mne-tools#10535) ENH: Add dark mode to website (mne-tools#10523) WIP: Copy BEM surfaces by default (don't symlink) (mne-tools#10531) Avoid lowpass=0 in brainvision data (mne-tools#10517) DOC: Update installers [skip azp] [skip actions] (mne-tools#10528) FIX: Fix for old build (mne-tools#10527) Fix line noise at wrong frequencies (mne-tools#10525) FIX : read fids in eeglab (mne-tools#10521) MAINT: Prefer PySide6 in testing (mne-tools#10513) ENH: Add overview_mode support (mne-tools#10501) MRG: Updates for qtpy in mne-qt-browser (mne-tools#10509) BUG: Fix bug with themes on macOS (mne-tools#10500) MAINT: Bump installer links (mne-tools#10511) Add metadata to combine_channels (mne-tools#10504) MAINT: Standardize tests (mne-tools#10502) CI: Test circle (mne-tools#10506) ENH: Use HiDPI splash screen on HiDPI screens (mne-tools#10503) WIP,MNT: Add support for QtPy (mne-tools#10430) ...
larsoner
added a commit
to agramfort/mne-python
that referenced
this pull request
Apr 21, 2022
* upstream/main: (52 commits) MAINT: Extra test for coreg (mne-tools#10549) BUG: Fix annot meas_date / crop (mne-tools#10491) Update latest.inc Use liblinear solver instead of lbgfs in all decodung examples [skip azp][skip actions] (mne-tools#10552) STY: Hotfix for HTML [ci skip] Allow making inverse solutions from fixed-orientation discrete forward models, enabling multi-dipole modeling (mne-tools#10464) Correct documented default number of CV splits [skip azp][skip actions] (mne-tools#10548) MRG: Add error checking to prevent the creation of montage with invalid [x, y, z] (mne-tools#10547) MRG: Add "verbose" parameter to pick_channels() method (mne-tools#10544) CI: Avoid bad PySide6 (mne-tools#10545) FIX: Flake (mne-tools#10540) FIX: Correct link (mne-tools#10536) DOC: Update installers (mne-tools#10535) ENH: Add dark mode to website (mne-tools#10523) WIP: Copy BEM surfaces by default (don't symlink) (mne-tools#10531) Avoid lowpass=0 in brainvision data (mne-tools#10517) DOC: Update installers [skip azp] [skip actions] (mne-tools#10528) FIX: Fix for old build (mne-tools#10527) Fix line noise at wrong frequencies (mne-tools#10525) FIX : read fids in eeglab (mne-tools#10521) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Several (all?) Windows users attending a workshop @agramfort and I hosted yesterday were running into issues when working with BEM surfaces we had shared with them as part of a FreeSurfer subjects directory.
The reason was that transferring the symlinks turned out to be problematic, and thus, users ended up with invalid files. They had to manually copy over the BEM surfaces from the
bem/flashorbem/watershed(?) directories tobem/and rename them.Since our collaborators are working in highly heterogenous settings (macOS, Linux, Windows), this is indeed a huge problem for data sharing, and it's not obvious at all to a common user WHY things are not working as expected.
I therefore here propose an API change without deprecation cycle, changing the default value of the
make_*_bem()functions'copyparameter fromFalsetoTrue, to always create a copy by default (and not a symlink).I'd further like to propose we change our sample data accordingly, getting rid of the symbolic links for the BEM surfaces there as well.
I'm happy to discuss this at today's office hour.
cc @agramfort