spacepy.toolbox.loadpickle

spacepy.toolbox.loadpickle(fln)[source]

load a pickle and return content as dictionary

Parameters:
flnstring

filename

Returns:
outdict

dictionary with content from file

See also

savepickle

Examples

note: If fln is not found, but the same filename with ‘.gz’

is found, will attempt to open the .gz as a gzipped file.

>>> d = loadpickle('test.pbin')