Repository navigation
0.5.0
0.5.0 (unreleased)
- Add
HDF5Reader(FormatoHDF5): low-level read of any HDF5 file through the shared loader andHDF5Serial:exists,kind(of:),children(of:),attributeNames(of:),attribute(_:of:),datasetInfo,readDataset(hyperslab, asFormatoArray),readStrings. Compound, enum, array and vlen data, references, float16 datasets and attributes of rank 2 or more are refused by name. Pinned exact to h5py 3.16.0 (tools/hdf5-append/generate.py). - Add
HDF5AppendWriter.append(to:mode:body:)withHDF5WriteSession(createGroup,writeDatasetwithchunkandreplace,setAttribute,deleteLink,exists). Default.atomicCopycopies the file, writes the copy and publishes it over the checked original (any failure leaves the original byte-identical);.inPlaceis not atomic. Unrelated content is unchanged; h5py reads the appended files equal to base plus operations. No compression filters, resizing or space reclamation. Note:.inPlacereplace: trueunlinks the old dataset before the new one is written. - Add
TIFFAppImage(FormatoTIFF): the first consumer's reading of one 2D TIFF as a Float32 calibrated image, the named option besideTIFFSignals. Calibration order FEI SEM (PixelWidth on x, where tifffile swaps non-square axes), Velox, Digital Micrograph tags, ImageJ; BigTIFF, extra pages, stacks, compression, tiles, WhiteIsZero, palettes and unequal colour channels are refused by name. Pinned bit for bit to macTEM cb6e164's reader on 149 byte-built files. Known difference: a tag whose value lies outside the file, or of an unknown type, throwstruncatedhere where the consumer ignores it. HDF5FileErrorgainsnotFound,wrongKind,alreadyExists,invalidPath,unsupportedType,limitExceeded,invalidArgument.
Migration. Source-breaking only for an exhaustive switch over HDF5FileError: add a default case. Otherwise additive. mac4DSTEM can move H5Reader and the sidecar append onto HDF5Reader / HDF5AppendWriter; macTEM's TIFFImageReader becomes TIFFAppImage.read. Float16 attributes are read; float16 datasets are not.