-
Notifications
You must be signed in to change notification settings - Fork 95
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
[ENH] Normalize all the line endings #191
Conversation
Codecov Report
@@ Coverage Diff @@
## master #191 +/- ##
=======================================
Coverage 51.58% 51.58%
=======================================
Files 32 32
Lines 1958 1958
=======================================
Hits 1010 1010
Misses 948 948 Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #191 +/- ##
=======================================
Coverage 51.58% 51.58%
=======================================
Files 32 32
Lines 1958 1958
=======================================
Hits 1010 1010
Misses 948 948 Continue to review full report at Codecov.
|
Thanks, @jbteves ! It looks like this is modifying the binary nifti files, though ? Was that intentional ? |
No, it's just stating that any .nii files should be handled like binary files-- regardless of platform, the contents should be precisely the same. |
I see now-- I'm not sure what that mode change means, but according to git the actual contents of the files shouldn't be different. Maybe we can check by loading up the contents on two systems and subtracting the images? |
@emdupre I researched the problem a bit more. Apparently the directory structure retains file permissions data for each file. So the files themselves are not modified, but their permissions are. We can either revert that part of the change or we can add
to the git config. More info here. I'm not sure why but the issue appears to only be introduced if you clone into Windows. |
OK, now that #189 is merged I'd like to tackle this one ! So it sounds like the only remaining question is whether we should update the permissions on the nifti files. Could you expand on the benefit to having those permissions updated ? |
Hm, so I've simmered on this a bit. I'm not sure if |
We only require a python environment, at this point, so we should be cross-platform. I'm not sure why Windows would require that permissions update, but I just wanted to be sure it was necessary for our n=1 Windows sample 😄 I'm ok to merge this, then. @tsalo @rmarkello, please voice if you have any objection ! |
Hm, let me amend the commit message to include the file mode changes. Otherwise on review that might be confusing. |
Scratch that, I forgot that amending commits that are already referenced remotely is typically bad practice-- we can just include this and read the context discussion out of the PR. Should be easy enough since it's just the one. |
I'm going to go ahead and merge this so we can cut our next release. If it causes an issue in the wild, we'll issue a hotfix (but I think it should be ok !). Thanks, @jbteves ✨ |
Closes #190 .
Changes proposed in this pull request:
Note: tested on MacOSX and Windows for cross-compatibility.