This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / io / matlab / _mio / _open_file

function

scipy.io.matlab._mio:_open_file

source: build-install/usr/lib/python3.14/site-packages/scipy/io/matlab/_mio.py:29

Signature

def _open_file(file_like, appendmat, mode = rb)

Summary

Open file_like and return as file-like object. First, check if object is already file-like; if so, return it as-is. Otherwise, try to pass it to open(). If that fails, and file_like is a string, and appendmat is true, append '.mat' and try again.

Aliases

  • scipy.io.matlab._mio._open_file