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|os.PathLike Name of the output file.
- ext
strorNone, optional Selected extension for export.
- data
- Returns:
- 0
On a successful run
- Raises:
BrokenPipeErrorIf somewhat an extension that is not supported passes all checks. (This should never happen)
ImportErrorIf scipy is not installed or cannot be found.
NotImplementedErrorSpreadheet output is not implemented yet.
Notes
Requires module scipy to export in .mat format. (Will require other modules to export in XLS-like format)