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

Fix the whitespace formatting of segstats #558

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

dkuegler
Copy link
Member

@dkuegler dkuegler commented Aug 22, 2024

This PR makes the whitespace patterns of segstats.py "more" identical with mri_segstats.

Both states work with mri_stats2table, but there other external scripts might be more strict in reading the csv portion of files and specifically using different scanf statements which might not match.

Users can still modify the formatting slightly, by adding more "volume_precision" (parameter to segstats.py), which will increase the number of digits after the colon, but by default, this is 1 in FreeSurfer's mri_segstats and thus we also pass --volume_precision 1 in recon-surf.

This PR also has some minor formatting changes in the code, but the key difference is formatting of the statsfile.

@m-reuter m-reuter merged commit e2453c9 into Deep-MI:dev Aug 22, 2024
2 checks passed
@dkuegler dkuegler deleted the fix/stats-formatting branch August 22, 2024 14:11
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