@@ -51,8 +51,8 @@ class T_Options(TypedDict):
51
51
"enable_cftimeindex" : True ,
52
52
"file_cache_maxsize" : 128 ,
53
53
"keep_attrs" : "default" ,
54
- "warn_for_unclosed_files" : False ,
55
54
"use_bottleneck" : True ,
55
+ "warn_for_unclosed_files" : False ,
56
56
}
57
57
58
58
_JOIN_OPTIONS = frozenset (["inner" , "outer" , "left" , "right" , "exact" ])
@@ -75,8 +75,8 @@ def _positive_integer(value):
75
75
"enable_cftimeindex" : lambda value : isinstance (value , bool ),
76
76
"file_cache_maxsize" : _positive_integer ,
77
77
"keep_attrs" : lambda choice : choice in [True , False , "default" ],
78
- "warn_for_unclosed_files" : lambda value : isinstance (value , bool ),
79
78
"use_bottleneck" : lambda value : isinstance (value , bool ),
79
+ "warn_for_unclosed_files" : lambda value : isinstance (value , bool ),
80
80
}
81
81
82
82
@@ -123,38 +123,16 @@ class set_options:
123
123
124
124
Parameters
125
125
----------
126
- display_width : int, default: 80
127
- Maximum display width for ``repr`` on xarray objects.
128
- display_max_rows : int, default: 12
129
- Maximum display rows.
130
- arithmetic_join : {"inner", "outer", "left", "right", "exact"}
126
+ arithmetic_join : {"inner", "outer", "left", "right", "exact"}, default: "inner"
131
127
DataArray/Dataset alignment in binary operations.
132
- file_cache_maxsize : int, default: 128
133
- Maximum number of open files to hold in xarray's
134
- global least-recently-usage cached. This should be smaller than
135
- your system's per-process file descriptor limit, e.g.,
136
- ``ulimit -n`` on Linux.
137
- warn_for_unclosed_files : bool, default: False
138
- Whether or not to issue a warning when unclosed files are
139
- deallocated. This is mostly useful for debugging.
140
- cmap_sequential : str or matplotlib.colors.Colormap, default: "viridis"
141
- Colormap to use for nondivergent data plots. If string, must be
142
- matplotlib built-in colormap. Can also be a Colormap object
143
- (e.g. mpl.cm.magma)
144
128
cmap_divergent : str or matplotlib.colors.Colormap, default: "RdBu_r"
145
129
Colormap to use for divergent data plots. If string, must be
146
130
matplotlib built-in colormap. Can also be a Colormap object
147
131
(e.g. mpl.cm.magma)
148
- keep_attrs : {"default", True, False}
149
- Whether to keep attributes on xarray Datasets/dataarrays after
150
- operations. Can be
151
-
152
- * ``True`` : to always keep attrs
153
- * ``False`` : to always discard attrs
154
- * ``default`` : to use original logic that attrs should only
155
- be kept in unambiguous circumstances
156
- display_style : {"text", "html"}
157
- Display style to use in jupyter for xarray objects.
132
+ cmap_sequential : str or matplotlib.colors.Colormap, default: "viridis"
133
+ Colormap to use for nondivergent data plots. If string, must be
134
+ matplotlib built-in colormap. Can also be a Colormap object
135
+ (e.g. mpl.cm.magma)
158
136
display_expand_attrs : {"default", True, False}:
159
137
Whether to expand the attributes section for display of
160
138
``DataArray`` or ``Dataset`` objects. Can be
@@ -183,6 +161,31 @@ class set_options:
183
161
* ``True`` : to always expand data variables
184
162
* ``False`` : to always collapse data variables
185
163
* ``default`` : to expand unless over a pre-defined limit
164
+ display_max_rows : int, default: 12
165
+ Maximum display rows.
166
+ display_style : {"text", "html"}, default: "html"
167
+ Display style to use in jupyter for xarray objects.
168
+ display_width : int, default: 80
169
+ Maximum display width for ``repr`` on xarray objects.
170
+ file_cache_maxsize : int, default: 128
171
+ Maximum number of open files to hold in xarray's
172
+ global least-recently-usage cached. This should be smaller than
173
+ your system's per-process file descriptor limit, e.g.,
174
+ ``ulimit -n`` on Linux.
175
+ keep_attrs : {"default", True, False}
176
+ Whether to keep attributes on xarray Datasets/dataarrays after
177
+ operations. Can be
178
+
179
+ * ``True`` : to always keep attrs
180
+ * ``False`` : to always discard attrs
181
+ * ``default`` : to use original logic that attrs should only
182
+ be kept in unambiguous circumstances
183
+ use_bottleneck : bool, default: True
184
+ Whether to use ``bottleneck`` to accelerate 1D reductions and
185
+ 1D rolling reduction operations.
186
+ warn_for_unclosed_files : bool, default: False
187
+ Whether or not to issue a warning when unclosed files are
188
+ deallocated. This is mostly useful for debugging.
186
189
187
190
Examples
188
191
--------
0 commit comments