HOME


sh-3ll 1.0
DIR:/opt/cloudlinux/venv/lib/python3.11/site-packages/xarray/core/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/xarray/core/__pycache__/options.cpython-311.pyc
�

���hc��*�ddiZGd�de��ZdS)�
display_width�Pc�$�eZdZdZd�Zd�Zd�ZdS)�set_optionsa%Set global state within a controlled context

    Currently, the only supported option is ``display_width``, which has a
    default value of 80.

    You can use ``set_options`` either as a context manager:

    >>> ds = xr.Dataset({'x': np.arange(1000)})
    >>> with xr.set_options(display_width=40):
    ...     print(ds)
    <xarray.Dataset>
    Dimensions:  (x: 1000)
    Coordinates:
      * x        (x) int64 0 1 2 3 4 5 6 ...
    Data variables:
        *empty*

    Or to set global options:

    >>> xr.set_options(display_width=80)
    c�v�t���|_t�|��dS�N)�OPTIONS�copy�old�update)�self�kwargss  �H/opt/cloudlinux/venv/lib/python3.11/site-packages/xarray/core/options.py�__init__zset_options.__init__s)���<�<�>�>������v������c��dSr�)rs r�	__enter__zset_options.__enter__s���rc�v�t���t�|j��dSr)r�clearrr
)r�type�value�	tracebacks    r�__exit__zset_options.__exit__!s)���
�
�������t�x� � � � � rN)�__name__�
__module__�__qualname__�__doc__rrrrrrrrsK��������*������!�!�!�!�!rrN)r�objectrrrr�<module>rsC���B�
��!�!�!�!�!�&�!�!�!�!�!r