From 093a33822e57e38a0fa9e685635ead94f0c31e0b Mon Sep 17 00:00:00 2001 From: Daoud Jahdou Date: Thu, 7 Feb 2019 15:17:56 +0100 Subject: [PATCH] updated documentation #2304 --- xarray/backends/api.py | 8 ++++---- xarray/core/dtypes.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xarray/backends/api.py b/xarray/backends/api.py index 04ec1e0ce3c..e4381d35db1 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -230,8 +230,8 @@ def open_dataset(filename_or_obj, group=None, decode_cf=True, dataset. This may be useful to drop variables with problems or inconsistent values. force_promote_float64: bool - If True force int variables to be promoted to float64 instead of - float32 + If True force int variables with scale factorto be promoted to + float64 instead of float32 backend_kwargs: dictionary, optional A dictionary of keyword arguments to pass on to the backend. This may be useful when backend options would improve performance or @@ -432,8 +432,8 @@ def open_dataarray(filename_or_obj, group=None, decode_cf=True, dataset. This may be useful to drop variables with problems or inconsistent values. force_promote_float64: bool - If True force int variables to be promoted to float64 instead of - float32 + If True force int variables with scale factor to be promoted to + float64 instead of float32 backend_kwargs: dictionary, optional A dictionary of keyword arguments to pass on to the backend. This may be useful when backend options would improve performance or diff --git a/xarray/core/dtypes.py b/xarray/core/dtypes.py index 0e2c9c04dbb..d3dbc8c0df6 100644 --- a/xarray/core/dtypes.py +++ b/xarray/core/dtypes.py @@ -30,8 +30,8 @@ def __eq__(self, other): INF = AlwaysGreaterThan() NINF = AlwaysLessThan() -# Constant that indicates that we -# must switch to float64 instead of +# Constant that indicates if we +# want to promote to float64 instead of # float32 even if dtype.itemsize <= 2 FORCE_PROMOTE_FLOAT64 = False