dautil.IO package

Submodules

Module contents

dautil.IO.makedirs(path)[source]

makesdirs if not exist while avoiding race condition catch the case that path is file, whether initially or in a race condition

dautil.IO.read_h5_dataset(path, dataset)[source]

a functional thin wrapper to read hdf5 dataset from path

dautil.IO.read_pkl(path)[source]

read pkl from f, unsure if it was saved in py2 or py3.

dautil.IO.read_pkl2(path)[source]

read pkl saved in py2.

dautil.IO.read_pkl_all(path)[source]

read all pkl from path, unsure if it was saved in py2 or py3.

this one will keep reading until EOF