0.2.0#
Consistent variable/connectivity sharing across all three writers and readers, a
unified precision option, and per-variable typing for ASCII output.
Added#
precisionkeyword argument on all writer classes for controlling floating-point storage precision (DataType.FLOAT/DataType.DOUBLE, or"single"/"double"strings). Applies only to floating-point variables, integers are always preserved exactly.SZL defaults to
None(fully automatic, per-variable, unchanged from before).ePLT defaults to
DataType.DOUBLEand applies to every variable, including integers — the classic API has no per-variable or integer specification capability.DAT defaults to
DataType.FLOAT(single) and now reads and writes real per-variable data types via theDT=zone header keyword.
ReadZone.shared_connectivity— 1-based source zone index if a zone’s FE connectivity is shared, elseNone.Internal
WriterMeta/ZoneMetatracking (Write.meta) on all three writers: each zone records what was actually written so later zones validatevar_sharing/con_sharingagainst the source zone arrays.
Changed#
Shared variables and shared FE connectivity now resolve to the source zone’s actual data automatically on read, on all three formats —
variable.valuesandzone.node_mapforward data arrays from the source zone (previously returnedNone). Usevariable.shared_zone/zone.shared_connectivityto check whether something is shared.
Fixed#
FE zone writers raised
IndexErrorwhennode_mapwas omitted for a zone sharing connectivity viacon_sharing.Shared-variable shape/count validation could miss real mismatches when the locally-supplied array was internally self-consistent but disagreed with the actual shared source’s recorded dimensions.
DAT: reader parsed every value as
float64regardless of declared type; now defaults to SINGLE (not DOUBLE) whenDT=is absent, matching the documented format default.CLI tools previously did not follow shared zone and connectivty to source; now sharing is preserved wherever possible and branched if source zones are not output
Removed#
Breaking:
dat.Write’ssig_digitsparameter — replaced byprecision.