From cc5a9347460121f03b8ce91e4a8b8dd3993ad72e Mon Sep 17 00:00:00 2001 From: dcherian Date: Fri, 29 Oct 2021 15:01:39 -0600 Subject: [PATCH] review feedback --- xarray/core/options.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xarray/core/options.py b/xarray/core/options.py index 3e2df379c55..2a317dc0c19 100644 --- a/xarray/core/options.py +++ b/xarray/core/options.py @@ -27,8 +27,8 @@ class T_Options(TypedDict): enable_cftimeindex: bool file_cache_maxsize: int keep_attrs: Literal["default", True, False] - warn_for_unclosed_files: bool use_bottleneck: bool + warn_for_unclosed_files: bool else: @@ -60,8 +60,8 @@ class T_Options(TypedDict): enable_cftimeindex: bool file_cache_maxsize: int keep_attrs: Literal["default", True, False] - warn_for_unclosed_files: bool use_bottleneck: bool + warn_for_unclosed_files: bool except ImportError: from typing import TYPE_CHECKING, Any, Dict, Hashable @@ -86,8 +86,8 @@ class T_Options(TypedDict): "enable_cftimeindex": True, "file_cache_maxsize": 128, "keep_attrs": "default", - "warn_for_unclosed_files": False, "use_bottleneck": True, + "warn_for_unclosed_files": False, } _JOIN_OPTIONS = frozenset(["inner", "outer", "left", "right", "exact"]) @@ -110,8 +110,8 @@ def _positive_integer(value): "enable_cftimeindex": lambda value: isinstance(value, bool), "file_cache_maxsize": _positive_integer, "keep_attrs": lambda choice: choice in [True, False, "default"], - "warn_for_unclosed_files": lambda value: isinstance(value, bool), "use_bottleneck": lambda value: isinstance(value, bool), + "warn_for_unclosed_files": lambda value: isinstance(value, bool), } @@ -160,14 +160,14 @@ class set_options: ---------- arithmetic_join : {"inner", "outer", "left", "right", "exact"}, default: "inner" DataArray/Dataset alignment in binary operations. - cmap_sequential : str or matplotlib.colors.Colormap, default: "viridis" - Colormap to use for nondivergent data plots. If string, must be - matplotlib built-in colormap. Can also be a Colormap object - (e.g. mpl.cm.magma) cmap_divergent : str or matplotlib.colors.Colormap, default: "RdBu_r" Colormap to use for divergent data plots. If string, must be matplotlib built-in colormap. Can also be a Colormap object (e.g. mpl.cm.magma) + cmap_sequential : str or matplotlib.colors.Colormap, default: "viridis" + Colormap to use for nondivergent data plots. If string, must be + matplotlib built-in colormap. Can also be a Colormap object + (e.g. mpl.cm.magma) display_expand_attrs : {"default", True, False}: Whether to expand the attributes section for display of ``DataArray`` or ``Dataset`` objects. Can be