Skip to content

Updates and bug fixes for dm_parse_faces#320

Merged
DESm1th merged 3 commits intoTIGRLab:masterfrom
benselby:working
Jan 12, 2022
Merged

Updates and bug fixes for dm_parse_faces#320
DESm1th merged 3 commits intoTIGRLab:masterfrom
benselby:working

Conversation

@benselby
Copy link
Copy Markdown
Contributor

@benselby benselby commented Jan 6, 2022

Before the break I realized that there was a bug in the FACES parser that was resulting in output tsvs not being saved in the correct nii/ directories. Also a few of the OPT session .txt files had UTF-16 encoding issues wherein the files were not being decoded properly due to a missing BOM, so I added some code to try specifying endianness which resolves most issues.

@pep8speaks
Copy link
Copy Markdown

pep8speaks commented Jan 6, 2022

Hello @benselby, Thank you for updating!

Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, pip install flake8 and then run flake8 datman.

Comment last updated at 2022-01-12 16:52:23 UTC

Copy link
Copy Markdown
Contributor

@DESm1th DESm1th left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this Ben!

Copy link
Copy Markdown
Contributor

@jerdra jerdra left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

Comment thread bin/dm_parse_faces.py
f"with {enc} encoding: {e}")
continue

raise UnicodeError("Unable to find appropriate encoding")
Copy link
Copy Markdown
Contributor

@jerdra jerdra Jan 12, 2022

Choose a reason for hiding this comment

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

would an IOError be more appropriate here? A missing Header line doesn't have to mean its a encoding issue, could just be a truncated file w/correct encoding.

I'm nitpicking here, so feel free to ignore if you disagree

@DESm1th DESm1th merged commit fb8670e into TIGRLab:master Jan 12, 2022
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.

5 participants