-
Notifications
You must be signed in to change notification settings - Fork 192
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
Another unicode issue in SinglefileData #3437
Comments
Not sure. The |
I would tend to agree with @sphuber here in that |
I fear that if the file was binary, people will use get_content and this will crash. |
For the REST API, if they know they want a byte string, they can always replace
I think |
I have a related question: Is there a better way to copy a
|
Not really I am afraid. Some of the sub classes such as |
About this last comment:
|
In
SinglefileData.get_content()
, shouldn't we instead return bytes (and fix all places where this method is used, e.g. also inUpfData
and the tools reading it?aiida-core/aiida/orm/nodes/data/singlefile.py
Lines 59 to 65 in dfd616f
Otherwise it means we are assuming this is a
SingleutfstringData
Mentioning @sphuber
The text was updated successfully, but these errors were encountered: