Open olof3 opened 9 months ago
Indeed, Complex
support preceded the mapping between named tuples and compound types. I'm not sure that Iike that we have special treatment of Complex
.
My preference here would be for the user to explicitly supply the type as the second parameter to read
. This is better in terms of type stability.
Complex numbers are written differently if they are inside a compound type compared to pure complex data.
gives
With
the data that is read back has the same format as what was written,
Perhaps this indicates that the inconsistency is due to that the special treatment in #558 (which reads/writes complex numbers in hdf5 files as compound types with fields
r
andi
) is applied to nested complex when they are read but not when they are written?