Main save function for .pytta and .hdf5 files.
(fileName: str)
| 691 | |
| 692 | |
| 693 | def 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 | |
| 707 | def pytta_save(fileName: str = time.ctime(time.time()), *PyTTaObjs): |
| 708 | """ |
nothing calls this directly
no test coverage detected