-
Notifications
You must be signed in to change notification settings - Fork 3
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
pyyaml cannot read scientific notation #19
Comments
The point of pkyaml is to wrap yaml to fix things with the API. Would you be able to fix pkyaml so that it implements what you need? |
@cchall let me know if pkyaml does the right thing. Added pkyaml.dump_pretty, which is not 100% parallel to pkjson.dump_pretty, but the ruamel author thinks dump should not return a string. Anyway, let me know if you want me to build in getting the string back. |
@robnagler This looks good for now. The YAML load now works as desired. I haven't written the corresponding dump but I don't think there is a case where you want the string back. |
pyyaml will read scientific notation to strings without restrictive formatting requirements: yaml/pyyaml#173. Given that no other scientific software we work with carries such the same restrictions this either needs to be fixed or pyyaml abandoned.
Options so far are:
The text was updated successfully, but these errors were encountered: