Skip to content
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

MRG, BUG: Fix bug with volume morph and subject_to!="fsaverage" #7896

Merged
merged 10 commits into from
Jun 23, 2020

Conversation

larsoner
Copy link
Member

@larsoner larsoner commented Jun 12, 2020

We had a bug where src_to did not work when the MRI and RAS coordinate frames were not identical. Fortunately they are for fsaverage (hopefully by far the most common destination subject), unfortunately I have never seen them be identical for any other FreeSurfer subject (hopefully a rare destination use case).

WIP because using non-fsaverage subjects is still not totally satisfactory (though they at least now are more reasonable instead of all zero), want to see if there is anything to fix or if it's just a parameter problem at my end. :

  • Need to make tests better

@larsoner larsoner changed the title WIP, BUG: Fix bug with volume morph and subject_to!="fsaverage" MRG, BUG: Fix bug with volume morph and subject_to!="fsaverage" Jun 15, 2020
@larsoner
Copy link
Member Author

Okay this one should be good to go. I noticed that the volumetric morphing has an issue where the edge voxel values do not round-trip to 1. because of the reslicing / interpolation steps using linear interpolation, but I'm not sure that there is a good way around this. That's a problem on master and this PR, so we can tackle that later if need be.

@agramfort
Copy link
Member

@larsoner any idea why the CIs are failing?

@larsoner
Copy link
Member Author

Just timeouts that should be fixed by #7904, this should be good to review

@agramfort agramfort merged commit 126cf98 into mne-tools:master Jun 23, 2020
@agramfort
Copy link
Member

thx @larsoner

@larsoner larsoner deleted the morph branch June 23, 2020 12:34
larsoner added a commit to larsoner/mne-python that referenced this pull request Jun 23, 2020
* upstream/master:
  MRG, ENH: Add method to project onto max power ori (mne-tools#7883)
  WIP: Warn if untested NIRX device (mne-tools#7905)
  MRG, BUG: Fix bug with volume morph and subject_to!="fsaverage" (mne-tools#7896)
  MRG, MAINT: Clean up use of bool, float, int (mne-tools#7917)
  ENH: Better error message for incompatible Evoked objects (mne-tools#7910)
  try to fix nullcontext (mne-tools#7908)
larsoner added a commit to larsoner/mne-python that referenced this pull request Jun 25, 2020
* upstream/master: (23 commits)
  MAINT: Add mne.surface to docstring tests (mne-tools#7930)
  MRG: Add smoothing controller to TimeViewer for the notebook backend (mne-tools#7928)
  MRG: TimeViewer matplotlib figure color (mne-tools#7925)
  fix typos (mne-tools#7924)
  MRG, ENH: Add method to project onto max power ori (mne-tools#7883)
  WIP: Warn if untested NIRX device (mne-tools#7905)
  MRG, BUG: Fix bug with volume morph and subject_to!="fsaverage" (mne-tools#7896)
  MRG, MAINT: Clean up use of bool, float, int (mne-tools#7917)
  ENH: Better error message for incompatible Evoked objects (mne-tools#7910)
  try to fix nullcontext (mne-tools#7908)
  WIP: Fix Travis (mne-tools#7906)
  WIP: Prototype of notebook viz (screencast) (mne-tools#7758)
  MRG, FIX: Speed up I/O tests, mark some slow (mne-tools#7904)
  Proper attribution for Blender tutorial (mne-tools#7900)
  MAINT: Check usage [ci skip] (mne-tools#7902)
  Allow find_bad_channels_maxwell() to return scores (mne-tools#7845)
  Warn if NIRx directory structure has been modified from original format (mne-tools#7898)
  Pin pvyista to 0.24.3 (mne-tools#7899)
  MRG: Add support for reading and writing sufaces to .obj (mne-tools#7824)
  Fix _auto_topomap_coords docstring. (mne-tools#7895)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants