-
Notifications
You must be signed in to change notification settings - Fork 261
[MRG] Fix to surface reading with new quad. #461
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
Conversation
This should be an old-style quad file (mentioned here). Not sure if anybody's seen a new-style quad. @Eric89GXL? |
No idea, it took me quite a while to find the old one :) The best bet is probably to ping the FreeSurfer listserv. |
I think that is a new quad file. But it indeed seems like quad files are not tested at all. Someone needs to update the testing dataset to make it possible to test them. |
just make available a file and @matthew-brett will add it to the freesurfer data package |
@jaeilepp - what's the license for that file? |
It's part of the FS tutorial dataset, I suppose it's using the freesurfer license. |
Any way of being more certain about the license? Where does the file
live normally?
|
It lives in the 'lightweight' tutorial dataset http://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/Data |
From But - the copy I see in |
If the source is the FMRIDC, the sort-of license is:
https://web.archive.org/web/20070630230750/http://www.fmridc.org/f/fmridc/help/faq.html#DataSharing |
Oh, I just assumed it's the same file with the same name and all. Any idea @Eric89GXL ? |
From the note it comes from FreeSurfer 3.0. We should probably ping the FreeSurfer folks to see if it's okay to relicense it to whatever form is necessary for |
Is the file version in the tutorial dataset OK for the test? In that case we could use that, because the license is reasonably clear. |
The file at https://github.com/mne-tools/mne-testing-data/tree/master/subjects/bert/surf does have the same hash as |
Actually no. Seems that it is the same triangle type as the other files. |
Sadly the freesurfer 3 archive is silent on the license for the file, as far as I can see. |
How about the file |
At least the MD5's don't match
And the file sizes are 4863500 and 3543685, respectively. |
Right - I knew they were different files, but I was wondering if the newest version from freesurfer 5.3.0 can still be used for the tests. |
I was pretty sure I had to go back that far to find a quad file for testing MNE-Python. I just checked and can confirm that |
Great - thanks - I emailed the freesurfer list. |
OK - all agreed : http://www.mail-archive.com/[email protected]/msg47878.html |
Latest nibabel master now has the updated submodule with the new data file at |
Current coverage is 94.21%@@ master #461 diff @@
==========================================
Files 160 160
Lines 21164 21173 +9
Methods 0 0
Messages 0 0
Branches 2265 2265
==========================================
+ Hits 19919 19949 +30
+ Misses 823 803 -20
+ Partials 422 421 -1
|
I added the test, but now that I think about it, maybe I should have added a separate function for testing the quad file to avoid the |
Okay, I made it a separate function. Ready for review. |
LGTM |
LGTM 2 @matthew-brett merge if you're happy |
Great - thanks for slogging through. |
Follow up to #460.
I didn't notice that the data format is actually different when reading
new quad
files. I could not find a file in freesurfer that would use this format so I couldn't add a test for it.