lightlab.util.io.saveload module¶
Summary¶
Functions:
loadMat |
returns a dictionary of data. |
loadPickle |
Uses pickle |
loadPickleGzip |
Uses pickle and then gzips the file. |
pprintFileDir |
Prints the contents of io.fileDir. |
saveFigure |
if None, uses the gcf() |
saveMat |
dataDict has keys as names you would like to appear in matlab, values are numpy arrays, N-D arrays, or matrices. |
savePickle |
Uses pickle |
savePickleGzip |
Uses pickle |
Reference¶
-
pprintFileDir(*, generate=False)[source]¶ Prints the contents of io.fileDir. If the file can be loaded by this module, it gives the command to do so.
Returns: A sorted list of files
-
loadPickleGzip(filename)[source]¶ Uses pickle and then gzips the file.
If it is named file.abc.gz, loads as file.abc.gz If it is named file.abc, loads as file.abc.pkl
-
saveMat(filename, dataDict)[source]¶ dataDict has keys as names you would like to appear in matlab, values are numpy arrays, N-D arrays, or matrices.