ptyrad.io

ptyrad.io#

Common file I/O and PtyRAD-specific load/save functions

Modules

adapter

Translates between torch.tensor and np.array

dataloader

Custom DataLoader class to load batched measurements either from GPU device memory or host RAM.

generic

Generic file handling (load/save) for raw, npy, and tif formats

handlers

High-level file handlers (load/save) for generic and hierarchical file formats

hierarchy

Hierarchical file handling (load/save) for pt, mat, hdf5 formats

load

PtyRAD-specific loading function

provenance

Reconstruction provenance handling (load/save)

save

PtyRAD-specific saving functions