nigsp.io.export_mtx¶
- nigsp.io.export_mtx(data, fname, ext=None)[source]¶
Export data into a text-like or mat file.
- Parameters:
- data
np.ndarray
Data to be exported.
- fname
str
oros.PathLike
Name of the output file.
- ext
str
orNone
, optional Selected extension for export.
- data
- Returns:
- 0
On a successful run
- Raises:
BrokenPipeError
If somewhat an extension that is not supported passes all checks. (This should never happen)
ImportError
If scipy is not installed or cannot be found.
NotImplementedError
Spreadheet output is not implemented yet.
Notes
Requires module scipy to export in .mat format. (Will require other modules to export in XLS-like format)