Skip to content

Add chardet encoding detection#193

Merged
MarJMue merged 3 commits intomasterfrom
chardet
Oct 2, 2024
Merged

Add chardet encoding detection#193
MarJMue merged 3 commits intomasterfrom
chardet

Conversation

@MarJMue
Copy link
Collaborator

@MarJMue MarJMue commented Oct 1, 2024

PR for inclusion of chardet, to determine file encoding, as discussed in #192.

As far as I understand, Nexus is binary with fixed encoding handled by h5py?

Copy link
Member

@domna domna left a comment

Choose a reason for hiding this comment

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

One small comment, which is not a hard blocker.
Thank you for the changes!

Copy link
Member

Choose a reason for hiding this comment

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

I would maybe call this file utils.py for future extensions or directly put it in the __init__.py. Seems a bit overkill to have this file for one function and it's unlikely that new functions will be added to this file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, will do. Tried to avoid repeating and was not entirely sure if you should put actual code in the init.py

@MarJMue MarJMue merged commit e141ce0 into master Oct 2, 2024
@MarJMue MarJMue deleted the chardet branch October 2, 2024 09:43
@MarJMue MarJMue linked an issue Oct 2, 2024 that may be closed by this pull request
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.

Add chardet encoding detection

2 participants