__init__.py 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. """
  2. MATLAB® file utilities (:mod:`scipy.io.matlab`)
  3. ===============================================
  4. .. currentmodule:: scipy.io.matlab
  5. This submodule is meant to provide lower-level file utilities related to reading
  6. and writing MATLAB files.
  7. .. autosummary::
  8. :toctree: generated/
  9. matfile_version - Get the MATLAB file version
  10. MatReadError - Exception indicating a read issue
  11. MatReadWarning - Warning class for read issues
  12. MatWriteError - Exception indicating a write issue
  13. MatWriteWarning - Warning class for write issues
  14. mat_struct - Class used when ``struct_as_record=False``
  15. varmats_from_mat - Pull variables out of mat 5 file as a sequence of mat file objects
  16. .. autosummary::
  17. :toctree: generated/
  18. :template: autosummary/ndarray_subclass.rst
  19. :nosignatures:
  20. MatlabObject - Class for a MATLAB object
  21. MatlabOpaque - Class for a MATLAB opaque matrix
  22. MatlabFunction - Class for a MATLAB function object
  23. The following utilities that live in the :mod:`scipy.io`
  24. namespace also exist in this namespace:
  25. .. autosummary::
  26. :toctree: generated/
  27. loadmat - Read a MATLAB style mat file (version 4 through 7.1)
  28. savemat - Write a MATLAB style mat file (version 4 through 7.1)
  29. whosmat - List contents of a MATLAB style mat file (version 4 through 7.1)
  30. Notes
  31. -----
  32. MATLAB® is a registered trademark of The MathWorks, Inc., 3 Apple Hill
  33. Drive, Natick, MA 01760-2098, USA.
  34. """
  35. # Matlab file read and write utilities
  36. from ._mio import loadmat, savemat, whosmat
  37. from ._mio5 import MatlabFunction, varmats_from_mat
  38. from ._mio5_params import MatlabObject, MatlabOpaque, mat_struct
  39. from ._miobase import (matfile_version, MatReadError, MatReadWarning,
  40. MatWriteError, MatWriteWarning)
  41. # Deprecated namespaces, to be removed in v2.0.0
  42. from .import (mio, mio5, mio5_params, mio4, byteordercodes,
  43. miobase, mio_utils, streams, mio5_utils)
  44. __all__ = [
  45. 'loadmat', 'savemat', 'whosmat', 'MatlabObject',
  46. 'matfile_version', 'MatReadError', 'MatReadWarning',
  47. 'MatWriteError', 'MatWriteWarning', 'mat_struct', 'MatlabOpaque',
  48. 'MatlabFunction', 'varmats_from_mat',
  49. ]
  50. from scipy._lib._testutils import PytestTester
  51. test = PytestTester(__name__)
  52. del PytestTester