-
Notifications
You must be signed in to change notification settings - Fork 532
fix: unicode problem with MRTrix2TrackVis #1804
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
I'd say that the trk file should be opened as bytes ( I would not advise skipping errors, that way we cannot reconstruct what really happened. It'd be better wrap it into a try catch that logged a warning, at the very least. BTW, the import of open at the top should be from io, instead of builtins. |
@oesteban - i agree on both accounts. |
@satra When I tried that I was running into an error saying |
still running into |
@mgxd - did you merge with master? also i'm not getting the error in py3 when i just load the file directly using:
|
however i see the error trying to decode beyond the END marker:
i believe the rest is binary and shouldn't require decoding. @mgxd - could you take a look at the functions and the mrtrix file format to see how they represent things? |
Codecov Report
@@ Coverage Diff @@
## master #1804 +/- ##
==========================================
- Coverage 72.6% 72.59% -0.01%
==========================================
Files 1070 1070
Lines 54456 54460 +4
Branches 7868 7868
==========================================
Hits 39537 39537
- Misses 13686 13690 +4
Partials 1233 1233
Continue to review full report at Codecov.
|
@satra this should be good to go |
due to #1802
@satra @chrisfilo @oesteban is there a better solution than just ignoring the problematic byte?