Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/scipy/io/__init__.py: 9%

11 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-04-03 06:39 +0000

1""" 

2================================== 

3Input and output (:mod:`scipy.io`) 

4================================== 

5 

6.. currentmodule:: scipy.io 

7 

8SciPy has many modules, classes, and functions available to read data 

9from and write data to a variety of file formats. 

10 

11.. seealso:: `NumPy IO routines <https://www.numpy.org/devdocs/reference/routines.io.html>`__ 

12 

13MATLAB® files 

14============= 

15 

16.. autosummary:: 

17 :toctree: generated/ 

18 

19 loadmat - Read a MATLAB style mat file (version 4 through 7.1) 

20 savemat - Write a MATLAB style mat file (version 4 through 7.1) 

21 whosmat - List contents of a MATLAB style mat file (version 4 through 7.1) 

22 

23For low-level MATLAB reading and writing utilities, see `scipy.io.matlab`. 

24 

25IDL® files 

26========== 

27 

28.. autosummary:: 

29 :toctree: generated/ 

30 

31 readsav - Read an IDL 'save' file 

32 

33Matrix Market files 

34=================== 

35 

36.. autosummary:: 

37 :toctree: generated/ 

38 

39 mminfo - Query matrix info from Matrix Market formatted file 

40 mmread - Read matrix from Matrix Market formatted file 

41 mmwrite - Write matrix to Matrix Market formatted file 

42 

43Unformatted Fortran files 

44=============================== 

45 

46.. autosummary:: 

47 :toctree: generated/ 

48 

49 FortranFile - A file object for unformatted sequential Fortran files 

50 FortranEOFError - Exception indicating the end of a well-formed file 

51 FortranFormattingError - Exception indicating an inappropriate end 

52 

53Netcdf 

54====== 

55 

56.. autosummary:: 

57 :toctree: generated/ 

58 

59 netcdf_file - A file object for NetCDF data 

60 netcdf_variable - A data object for the netcdf module 

61 

62Harwell-Boeing files 

63==================== 

64 

65.. autosummary:: 

66 :toctree: generated/ 

67 

68 hb_read -- read H-B file 

69 hb_write -- write H-B file 

70 

71Wav sound files (:mod:`scipy.io.wavfile`) 

72========================================= 

73 

74.. module:: scipy.io.wavfile 

75 

76.. autosummary:: 

77 :toctree: generated/ 

78 

79 read 

80 write 

81 WavFileWarning 

82 

83Arff files (:mod:`scipy.io.arff`) 

84================================= 

85 

86.. module:: scipy.io.arff 

87 

88.. autosummary:: 

89 :toctree: generated/ 

90 

91 loadarff 

92 MetaData 

93 ArffError 

94 ParseArffError 

95""" 

96# matfile read and write 

97from .matlab import loadmat, savemat, whosmat 

98 

99# netCDF file support 

100from ._netcdf import netcdf_file, netcdf_variable 

101 

102# Fortran file support 

103from ._fortran import FortranFile, FortranEOFError, FortranFormattingError 

104 

105from ._fast_matrix_market import mminfo, mmread, mmwrite 

106from ._idl import readsav 

107from ._harwell_boeing import hb_read, hb_write 

108 

109# Deprecated namespaces, to be removed in v2.0.0 

110from . import arff, harwell_boeing, idl, mmio, netcdf, wavfile 

111 

112__all__ = [s for s in dir() if not s.startswith('_')] 

113 

114from scipy._lib._testutils import PytestTester 

115test = PytestTester(__name__) 

116del PytestTester