Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add ability to read/write freesurfer surface files in scanner ras #1420

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

Open
jduemose wants to merge 2 commits into nipy:master
base: master
Choose a base branch
Loading
from jduemose:freesurfer-realras-flex

Conversation

Copy link

@jduemose jduemose commented Jun 30, 2025

Previously, only freesurfer surface files with coordinates in unknown or surface ras/tkregister space could be read. Following #1419, this PR adds the ability to read surface files whose coordinates are stored in scanner ras as well.

Let me know if calling a freesurfer function via subprocess as part of the test is a problem - but I wasn't sure how to test this feature otherwise.

Copy link
Member

Sorry, you caught me just as I was heading off on vacation, and following up with nibabel has been low on my queue since getting back. Merging master and running tests.

Copy link

codecov bot commented Sep 22, 2025
edited
Loading

Codecov Report

❌ Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.37%. Comparing base (70f278e) to head (560a5be).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
nibabel/freesurfer/tests/test_io.py 50.00% 3 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@
## master #1420 +/- ##
==========================================
- Coverage 95.44% 95.37% -0.07% 
==========================================
 Files 209 209 
 Lines 29782 29788 +6 
 Branches 4472 4472 
==========================================
- Hits 28424 28410 -14 
- Misses 925 943 +18 
- Partials 433 435 +2 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

assert any('extension code' in str(ww.message) for ww in w)

# Test reading/writing a surface file in scanner RAS
cmd = f"mris_convert --to-scanner {pjoin(data_path, 'surf', 'lh.inflated')} {surf_path}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't install FreeSurfer to run tests. Could you contribute the converted file to https://codeberg.org/nipy-data/nitest-freesurfer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@effigies effigies effigies left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /