Added a real_cls parameter to the decoder classes, so that users can specify an arbitrary type with which real numbers in the PVL-text could be returned in the dict-like from the loaders (defaults to float as you'd expect).
The encoders now support a broader range of real types to complement the decoders.
Added description in parsing.rst
Very long Python str objects that otherwise qualified as ODL/PDS3 Symbol Strings, would get written out with single-quotes, but they would then be split across lines via the formatter, so they should be written as Text Strings with double-quotes. Better protections have been put in place.
Related Issue
Would close #81 .
How Has This Been Tested?
make lint
make docs
make test-all
Types of changes
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
I claim copyrights on my contributions in this pull request, and I provide those contributions via this pull request under the same license terms that the pvl project uses.
Description
real_cls
parameter to the decoder classes, so that users can specify an arbitrary type with which real numbers in the PVL-text could be returned in the dict-like from the loaders (defaults tofloat
as you'd expect).str
objects that otherwise qualified as ODL/PDS3 Symbol Strings, would get written out with single-quotes, but they would then be split across lines via the formatter, so they should be written as Text Strings with double-quotes. Better protections have been put in place.Related Issue
Would close #81 .
How Has This Been Tested?
Types of changes
Checklist:
Licensing:
This project is released under the LICENSE.