Skip to content

v1.3.0

Choose a tag to compare

@aschet aschet released this 30 Sep 20:25
· 49 commits to main since this release

Added the BCR-1.0 data types uint8, uint16 and uint32 (codes 0-2), as DataType.UINT8, UINT16, UINT32. They are BCR-1.0 only.

Added the BCR-1.0 ASCII conventions: ; comments, DataType, Compression and CheckType given as names (INTEGER, NULL, ...) or as a number, and bad data marked by the type's maximum value as a number.

Added reading of ASCII records that end in CR or LF instead of CRLF, and of an upper case A/B as the first magic character. sdfio.MAGICS now includes the upper case variants.

Changed: in BCR-1.0, a floating point value at or above 3.4E+38 (binary32) or 1.7E+308 (binary64) is bad data, as the specification defines, instead of only the largest representable value.

Changed: BCR-1.0 ASCII files now write a non-measured point as the type's maximum instead of BAD, which the BCR-1.0 specification doesn't have. ISO output is unchanged.

Fixed: a valid value that rounds to the invalid-point sentinel of an integer type (for example when converting uint16 to int16) was silently read back as NaN; writing it now fails with an error.