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
« 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==================================
6.. currentmodule:: scipy.io
8SciPy has many modules, classes, and functions available to read data
9from and write data to a variety of file formats.
11.. seealso:: `NumPy IO routines <https://www.numpy.org/devdocs/reference/routines.io.html>`__
13MATLAB® files
14=============
16.. autosummary::
17 :toctree: generated/
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)
23For low-level MATLAB reading and writing utilities, see `scipy.io.matlab`.
25IDL® files
26==========
28.. autosummary::
29 :toctree: generated/
31 readsav - Read an IDL 'save' file
33Matrix Market files
34===================
36.. autosummary::
37 :toctree: generated/
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
43Unformatted Fortran files
44===============================
46.. autosummary::
47 :toctree: generated/
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
53Netcdf
54======
56.. autosummary::
57 :toctree: generated/
59 netcdf_file - A file object for NetCDF data
60 netcdf_variable - A data object for the netcdf module
62Harwell-Boeing files
63====================
65.. autosummary::
66 :toctree: generated/
68 hb_read -- read H-B file
69 hb_write -- write H-B file
71Wav sound files (:mod:`scipy.io.wavfile`)
72=========================================
74.. module:: scipy.io.wavfile
76.. autosummary::
77 :toctree: generated/
79 read
80 write
81 WavFileWarning
83Arff files (:mod:`scipy.io.arff`)
84=================================
86.. module:: scipy.io.arff
88.. autosummary::
89 :toctree: generated/
91 loadarff
92 MetaData
93 ArffError
94 ParseArffError
95"""
96# matfile read and write
97from .matlab import loadmat, savemat, whosmat
99# netCDF file support
100from ._netcdf import netcdf_file, netcdf_variable
102# Fortran file support
103from ._fortran import FortranFile, FortranEOFError, FortranFormattingError
105from ._fast_matrix_market import mminfo, mmread, mmwrite
106from ._idl import readsav
107from ._harwell_boeing import hb_read, hb_write
109# Deprecated namespaces, to be removed in v2.0.0
110from . import arff, harwell_boeing, idl, mmio, netcdf, wavfile
112__all__ = [s for s in dir() if not s.startswith('_')]
114from scipy._lib._testutils import PytestTester
115test = PytestTester(__name__)
116del PytestTester