Skip to content

Conversation

@drammock
Copy link
Member

@drammock drammock commented Jul 17, 2024

Add new param encoding to read_raw_nirx. Default None "latin-1" should be backward compatible. Also adds another strptime pattern (zh-locale appropriate) to check the meas_date against when reading the file.

Fixes mne-tools/mne-nirs#543

Draft PR because I haven't added a test yet, and because IDK how many of our readers might need such functionality. Input welcome on that question.

Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

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

I think we can live without a test if you've tested locally @drammock. In theory you could do some gymnastics with monkeypatch or trying to edit a file's ASCII or binary in the right place (you could figure it out with a fid.tell() maybe then know precisely what to change?) but it seems like more work than it's worth here.

@larsoner larsoner added this to the 1.8 milestone Jul 19, 2024
@drammock drammock marked this pull request as ready for review July 19, 2024 15:51
@drammock drammock merged commit 43fb9d8 into mne-tools:main Jul 26, 2024
@drammock drammock deleted the encodings branch July 26, 2024 20:56
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.

Please support the files saved in China (currently only ['en_US.utf8', 'de_DE', 'fr_FR', 'it_IT')

2 participants