MCPcopy Create free account
hub / github.com/PyTTaMaster/PyTTa / load

Function load

pytta/functions.py:693–705  ·  view source on GitHub ↗

Main save function for .pytta and .hdf5 files.

(fileName: str)

Source from the content-addressed store, hash-verified

691
692
693def load(fileName: str):
694 """
695 Main save function for .pytta and .hdf5 files.
696 """
697 if fileName.split('.')[-1] == 'hdf5':
698 output = _h5_load(fileName)
699 elif fileName.split('.')[-1] == 'pytta':
700 warn(DeprecationWarning("'.pytta' format is DEPRECATED and being " +
701 "replaced by '.hdf5'."))
702 output = pytta_load(fileName)
703 else:
704 ValueError('pytta.load only works with *.hdf5 or *.pytta files.')
705 return output
706
707def pytta_save(fileName: str = time.ctime(time.time()), *PyTTaObjs):
708 """

Callers

nothing calls this directly

Calls 3

pytta_loadFunction · 0.85
splitMethod · 0.80
_h5_loadFunction · 0.70

Tested by

no test coverage detected