| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/scipy/io/matlab/__pycache__/ |
Upload File : |
�
d�cl2 �
�: � d Z ddlZddlZddlZddlmZ ddlmZ g d�Z
G d� de� � Z G d � d
e� � Z
G d� de� � Zd
ddddddddd� Z ej e� � Z d� Zd� Zdd�d�ZeZd� Zd%d�Z G d� d � � Z G d!� d"� � Zd#� Zd$� ZdS )&zf
Base classes for MATLAB file stream reading.
MATLAB is a registered trademark of the Mathworks inc.
� N)�doccer� )�_byteordercodes)
�
MatFileReader�MatReadError�MatReadWarning�MatVarReader�
MatWriteError�arr_dtype_number�arr_to_chars�convert_dtypes�doc_dict� docfiller�get_matfile_version�matdims�
read_dtypec � � e Zd ZdZdS )r z"Exception indicating a read issue.N��__name__�
__module__�__qualname__�__doc__� � �:/usr/lib/python3/dist-packages/scipy/io/matlab/_miobase.pyr r s � � � � � �,�,�,�,r r c � � e Zd ZdZdS )r
z#Exception indicating a write issue.Nr r r r r
r
s � � � � � �-�-�-�-r r
c � � e Zd ZdZdS )r zWarning class for read issues.Nr r r r r r s � � � � � �(�(�(�(r r zfile_name : str
Name of the mat file (do not need .mat extension if
appendmat==True) Can also pass open file-like object.z�appendmat : bool, optional
True to append the .mat extension to the end of the given
filename, if not already present. Default is True.a� byte_order : str or None, optional
None by default, implying byte order guessed from mat
file. Otherwise can be one of ('native', '=', 'little', '<',
'BIG', '>').
mat_dtype : bool, optional
If True, return arrays in same dtype as would be loaded into
MATLAB (instead of the dtype with which they are saved).
squeeze_me : bool, optional
Whether to squeeze unit matrix dimensions or not.
chars_as_strings : bool, optional
Whether to convert char arrays to string arrays.
matlab_compatible : bool, optional
Returns matrices as would be loaded by MATLAB (implies
squeeze_me=False, chars_as_strings=False, mat_dtype=True,
struct_as_record=True).ab struct_as_record : bool, optional
Whether to load MATLAB structs as NumPy record arrays, or as
old-style NumPy arrays with dtype=object. Setting this flag to
False replicates the behavior of SciPy version 0.7.x (returning
numpy object arrays). The default setting is True, because it
allows easier round-trip load and save of MATLAB files.zAmat_stream : file-like
Object with file API, open for reading.a long_field_names : bool, optional
* False - maximum field name length in a structure is 31 characters
which is the documented maximum length. This is the default.
* True - maximum field name length in a structure is 63 characters
which works for MATLAB 7.6z[do_compression : bool, optional
Whether to compress matrices on write. Default is False.z�oned_as : {'row', 'column'}, optional
If 'column', write 1-D NumPy arrays as column vectors.
If 'row', write 1D NumPy arrays as row vectors.zbunicode_strings : bool, optional
If True, write strings as Unicode, else MATLAB usual encoding.) �file_arg�
append_arg� load_args�
struct_arg�
matstream_arg�long_fields�do_compression�oned_as�unicode_stringsc � � | � � � }|D ]2}t j || � � � |� � ||<