Upgrading xarray 0.13 to 0.14
Unknown0.13.0 → 0.14.1
UnknownUpgrade verdict
DepDelta hasn't looked for this range's notes yet, so breaking changes can't be ruled out.
In plain terms
- DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
- Their commits are listed with this comparison.
Must act Unknown for releases without notes
Releases without notes may still need changes. Check their commits before upgrading.
Python requirement changed in 0.14.0: >=3.5.3 → >=3.6.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- added:
export map_blocks
- changed:
variable WRITEABLE_STORES → variable WRITEABLE_STORES: Dict[str, Callable]
- changed:
variable FILE_CACHE → variable FILE_CACHE: LRUCache[str, io.IOBase] - changed:
variable REF_COUNTS → variable REF_COUNTS: Dict[Any, int]
- removed:
property LRUCache.maxsize - changed:
class LRUCache(collections.abc.MutableMapping) → class LRUCache(MutableMapping[K, V]) - changed:
constructor LRUCache(maxsize, on_evict=…) → constructor LRUCache(maxsize: int, on_evict: Callable[[K, V], Any]=…) - added:
property LRUCache.maxsize -> int - added:
variable K - added:
variable V
- changed:
method VariableCoder.decode(variable, name=…) → method VariableCoder.decode(variable: Variable, name: Hashable=…) -> Variable - changed:
method VariableCoder.encode(variable, name=…) → method VariableCoder.encode(variable: Variable, name: Hashable=…) -> Variable
- changed:
function reindex_variables(variables: Mapping[Any, Variable], sizes: Mapping[Any, int], indexes: Mapping[Any, pd.Index], indexers: Mapping, method: Optional[str]=…, tolerance: Any=…, copy: bool=…, fill_value: Optional[Any]=…) -> Tuple[OrderedDict[Any, Variable], OrderedDict[Any, pd.Index]] → function reindex_variables(variables: Mapping[Any, Variable], sizes: Mapping[Any, int], indexes: Mapping[Any, pd.Index], indexers: Mapping, method: Optional[str]=…, tolerance: Any=…, copy: bool=…, fill_value: Optional[Any]=…, sparse: bool=…) -> Tuple[Dict[Hashable, Variable], Dict[Hashable, pd.Index]]
- changed:
function broadcast_compat_data(variable, broadcast_dims, core_dims) → function broadcast_compat_data(variable: Variable, broadcast_dims: Tuple[Hashable, ...], core_dims: Tuple[Hashable, ...]) -> Any - changed:
function build_output_coords(args: list, signature: _UFuncSignature, exclude_dims: AbstractSet=…) -> List[OrderedDict[Any, Variable]] → function build_output_coords(args: list, signature: _UFuncSignature, exclude_dims: AbstractSet=…) -> List[Dict[Any, Variable]] - changed:
function unified_dim_sizes(variables: Iterable[Variable], exclude_dims: AbstractSet=…) -> OrderedDict[Any, int] → function unified_dim_sizes(variables: Iterable[Variable], exclude_dims: AbstractSet=…) -> Dict[Hashable, int]
- removed:
class AbstractCoordinates(Mapping[Hashable, 'DataArray']) - removed:
method AbstractCoordinates.merge(other: AbstractCoordinates) -> Dataset - removed:
method AbstractCoordinates.to_dataset() -> Dataset - removed:
method AbstractCoordinates.to_index(ordered_dims: Sequence[Hashable]=…) -> pd.Index - removed:
method AbstractCoordinates.update(other: Mapping[Hashable, Any]) -> None - removed:
property AbstractCoordinates.dims -> Union[Mapping[Hashable, int], Tuple[Hashable, ...]] - removed:
property AbstractCoordinates.indexes -> Indexes - removed:
property AbstractCoordinates.variables - changed:
class DataArrayCoordinates(AbstractCoordinates) → class DataArrayCoordinates(Coordinates) - changed:
class DatasetCoordinates(AbstractCoordinates) → class DatasetCoordinates(Coordinates) - added:
class Coordinates(Mapping[Hashable, 'DataArray']) - added:
method Coordinates.merge(other: Coordinates) -> Dataset - added:
method Coordinates.to_dataset() -> Dataset - added:
method Coordinates.to_index(ordered_dims: Sequence[Hashable]=…) -> pd.Index - added:
method Coordinates.update(other: Mapping[Hashable, Any]) -> None - added:
property Coordinates.dims -> Union[Mapping[Hashable, int], Tuple[Hashable, ...]] - added:
property Coordinates.indexes -> Indexes - added:
property Coordinates.variables
- removed:
function gradient(f, *varargs, axis=…, **kwargs) - removed:
function isin(element, test_elements, assume_unique=…, invert=…) - removed:
function validate_axis(axis, ndim) - removed:
variable AxisError - removed:
variable blockwise - removed:
variable gradient - added:
function meta_from_array(x, ndim=…, dtype=…) - added:
variable meta_from_array
- removed:
variable overlap - removed:
variable trim_internal
- removed:
property DataArray.attrs -> OrderedDict[Any, Any] - removed:
property DataArray.encoding -> OrderedDict[Any, Any] - changed:
constructor DataArray(data: Any=…, coords: Union[Sequence[Tuple], Mapping[Hashable, Any], None]=…, dims: Union[Hashable, Sequence[Hashable], None]=…, name: Hashable=…, attrs: Mapping=…, encoding=…, indexes=…, fastpath: bool=…) → constructor DataArray(data: Any=…, coords: Union[Sequence[Tuple], Mapping[Hashable, Any], None]=…, dims: Union[Hashable, Sequence[Hashable], None]=…, name: Hashable=…, attrs: Mapping=…, encoding=…, indexes: Dict[Hashable, pd.Index]=…, fastpath: bool=…) - changed:
method DataArray.drop(labels: Union[Hashable, Iterable[Hashable]], *, errors: str=…) -> DataArray | (labels: Any, dim: Hashable, *, errors: str=…) -> DataArray → method DataArray.drop(labels: Mapping=…, dim: Hashable=…, *, errors: str=…, **labels_kwargs) -> DataArray - changed:
method DataArray.interpolate_na(dim=…, method: str=…, limit: int=…, use_coordinate: Union[bool, str]=…, **kwargs: Any) -> DataArray → method DataArray.interpolate_na(dim: Hashable=…, method: str=…, limit: int=…, use_coordinate: Union[bool, str]=…, max_gap: Union[int, float, str, pd.Timedelta, np.timedelta64]=…, **kwargs: Any) -> DataArray - changed:
method DataArray.to_netcdf(*args, **kwargs) -> Optional[Delayed] → method DataArray.to_netcdf(*args, **kwargs) -> Union[bytes, Delayed, None] - changed:
method DataArray.unstack(dim: Union[Hashable, Sequence[Hashable], None]=…) -> DataArray → method DataArray.unstack(dim: Union[Hashable, Sequence[Hashable], None]=…, fill_value: Any=…, sparse: bool=…) -> DataArray - added:
method DataArray.drop_sel(labels: Mapping[Hashable, Any]=…, *, errors: str=…, **labels_kwargs) -> DataArray - added:
method DataArray.drop_vars(names: Union[Hashable, Iterable[Hashable]], *, errors: str=…) -> DataArray - added:
method DataArray.map_blocks(func: Callable[..., T_DSorDA], args: Sequence[Any]=…, kwargs: Mapping[str, Any]=…) -> T_DSorDA - added:
method DataArray.unify_chunks() -> DataArray - added:
property DataArray.attrs -> Dict[Hashable, Any] - added:
property DataArray.encoding -> Dict[Hashable, Any] - added:
variable T_DSorDA
- removed:
property Dataset.attrs -> OrderedDict[Any, Any] - changed:
function calculate_dimensions(variables: Mapping[Hashable, Variable]) -> Dict[Any, int] → function calculate_dimensions(variables: Mapping[Hashable, Variable]) -> Dict[Hashable, int] - changed:
function merge_indexes(indexes: Mapping[Hashable, Union[Hashable, Sequence[Hashable]]], variables: Mapping[Hashable, Variable], coord_names: Set[Hashable], append: bool=…) -> Tuple[OrderedDict[Any, Variable], Set[Hashable]] → function merge_indexes(indexes: Mapping[Hashable, Union[Hashable, Sequence[Hashable]]], variables: Mapping[Hashable, Variable], coord_names: Set[Hashable], append: bool=…) -> Tuple[Dict[Hashable, Variable], Set[Hashable]] - changed:
function split_indexes(dims_or_levels: Union[Hashable, Sequence[Hashable]], variables: Mapping[Hashable, Variable], coord_names: Set[Hashable], level_coords: Mapping[Hashable, Hashable], drop: bool=…) -> Tuple[OrderedDict[Any, Variable], Set[Hashable]] → function split_indexes(dims_or_levels: Union[Hashable, Sequence[Hashable]], variables: Mapping[Hashable, Variable], coord_names: Set[Hashable], level_coords: Mapping[Hashable, Hashable], drop: bool=…) -> Tuple[Dict[Hashable, Variable], Set[Hashable]] - changed:
method Dataset.drop(labels: Union[Hashable, Iterable[Hashable]], *, errors: str=…) -> Dataset | (labels: Any, dim: Hashable, *, errors: str=…) -> Dataset → method Dataset.drop(labels=…, dim=…, *, errors=…, **labels_kwargs) - changed:
method Dataset.interpolate_na(dim: Hashable=…, method: str=…, limit: int=…, use_coordinate: Union[bool, Hashable]=…, **kwargs: Any) -> Dataset → method Dataset.interpolate_na(dim: Hashable=…, method: str=…, limit: int=…, use_coordinate: Union[bool, Hashable]=…, max_gap: Union[int, float, str, pd.Timedelta, np.timedelta64]=…, **kwargs: Any) -> Dataset - changed:
method Dataset.merge(other: DatasetLike, inplace: bool=…, overwrite_vars: Union[Hashable, Iterable[Hashable]]=…, compat: str=…, join: str=…, fill_value: Any=…) -> Dataset → method Dataset.merge(other: CoercibleMapping, inplace: bool=…, overwrite_vars: Union[Hashable, Iterable[Hashable]]=…, compat: str=…, join: str=…, fill_value: Any=…) -> Dataset - changed:
method Dataset.unstack(dim: Union[Hashable, Iterable[Hashable]]=…) -> Dataset → method Dataset.unstack(dim: Union[Hashable, Iterable[Hashable]]=…, fill_value: Any=…, sparse: bool=…) -> Dataset - changed:
method Dataset.update(other: DatasetLike, inplace: bool=…) -> Dataset → method Dataset.update(other: CoercibleMapping, inplace: bool=…) -> Dataset - added:
method Dataset.drop_sel(labels=…, *, errors=…, **labels_kwargs) - added:
method Dataset.drop_vars(names: Union[Hashable, Iterable[Hashable]], *, errors: str=…) -> Dataset - added:
method Dataset.map(func: Callable, keep_attrs: bool=…, args: Iterable[Any]=…, **kwargs: Any) -> Dataset - added:
method Dataset.map_blocks(func: Callable[..., T_DSorDA], args: Sequence[Any]=…, kwargs: Mapping[str, Any]=…) -> T_DSorDA - added:
method Dataset.unify_chunks() -> Dataset - added:
property Dataset.attrs -> Dict[Hashable, Any] - added:
variable T_DSorDA
- removed:
variable dask_array_compat - added:
function lazy_array_equiv(arr1, arr2)
- added:
function array_repr(arr) - added:
function array_section(obj) - added:
function collapsible_section(name, inline_details=…, details=…, n_items=…, enabled=…, collapsed=…) - added:
function dataset_repr(ds) - added:
function dim_section(obj) - added:
function format_dims(dims, coord_names) - added:
function short_data_repr_html(array) - added:
function summarize_attrs(attrs) - added:
function summarize_coord(name, var) - added:
function summarize_coords(variables) - added:
function summarize_variable(name, var, is_index=…, dtype=…, preview=…) - added:
function summarize_vars(variables) - added:
variable CSS_FILE_PATH - added:
variable CSS_STYLE - added:
variable ICONS_SVG - added:
variable ICONS_SVG_PATH - added:
variable attr_section - added:
variable coord_section - added:
variable datavar_section
- removed:
method DataArrayGroupBy.quantile(q, dim=…, interpolation=…, keep_attrs=…) - added:
function check_reduce_dims(reduce_dims, dimensions) - added:
method DataArrayGroupBy.map(func, shortcut=…, args=…, **kwargs) - added:
method DatasetGroupBy.map(func, args=…, shortcut=…, **kwargs) - added:
method GroupBy.quantile(q, dim=…, interpolation=…, keep_attrs=…) - added:
property GroupBy.dims
- changed:
function default_indexes(coords: Mapping[Any, Variable], dims: Iterable) -> OrderedDict[Any, pd.Index] → function default_indexes(coords: Mapping[Any, Variable], dims: Iterable) -> Dict[Hashable, pd.Index] - changed:
function isel_variable_and_index(name: Hashable, variable: Variable, index: pd.Index, indexers: Mapping[Any, Union[slice, Variable]]) -> Tuple[Variable, Optional[pd.Index]] → function isel_variable_and_index(name: Hashable, variable: Variable, index: pd.Index, indexers: Mapping[Hashable, Union[int, slice, np.ndarray, Variable]]) -> Tuple[Variable, Optional[pd.Index]]
- removed:
function get_loc(index, label, method=…, tolerance=…)
- removed:
class OrderedDefaultDict(OrderedDict) - removed:
constructor OrderedDefaultDict(default_factory) - removed:
function expand_and_merge_variables(objs, priority_arg=…) - removed:
function expand_variable_dicts(list_of_variable_dicts: List[Union[Dataset, OrderedDict]]) -> List[Mapping[Any, Variable]] - removed:
function extract_indexes(coords) - removed:
function merge_coords_for_inplace_math(objs, priority_vars=…) - removed:
function merge_variables(list_of_variables_dicts: List[Mapping[Any, Variable]], priority_vars: Mapping[Any, Variable]=…, compat: str=…) -> OrderedDict[Any, Variable] - removed:
variable DatasetLikeValue - removed:
variable MutableDatasetLike - changed:
function broadcast_dimension_size(variables: List[Variable]) -> OrderedDict[Any, int] → function broadcast_dimension_size(variables: List[Variable]) -> Dict[Hashable, int] - changed:
function coerce_pandas_values(objects: Iterable[DatasetLike]) -> List[DatasetLike] → function coerce_pandas_values(objects: Iterable[CoercibleMapping]) -> List[DatasetLike] - changed:
function dataset_merge_method(dataset: Dataset, other: DatasetLike, overwrite_vars: Union[Hashable, Iterable[Hashable]], compat: str, join: str, fill_value: Any) -> Tuple[OrderedDict[Hashable, Variable], Set[Hashable], Dict[Hashable, int]] → function dataset_merge_method(dataset: Dataset, other: CoercibleMapping, overwrite_vars: Union[Hashable, Iterable[Hashable]], compat: str, join: str, fill_value: Any) -> _MergeResult - changed:
function dataset_update_method(dataset: Dataset, other: DatasetLike) -> Tuple[OrderedDict[Hashable, Variable], Set[Hashable], Dict[Hashable, int]] → function dataset_update_method(dataset: Dataset, other: CoercibleMapping) -> _MergeResult - changed:
function determine_coords(list_of_variable_dicts: Iterable[DatasetLike]) -> Tuple[Set[Hashable], Set[Hashable]] → function determine_coords(list_of_mappings: Iterable[DatasetLike]) -> Tuple[Set[Hashable], Set[Hashable]] - changed:
function merge(objects, compat=…, join=…, fill_value=…) → function merge(objects: Iterable[Union[DataArray, CoercibleMapping]], compat: str=…, join: str=…, fill_value: object=…) -> Dataset - changed:
function merge_coords(objs, compat=…, join=…, priority_arg=…, indexes=…, fill_value=…) → function merge_coords(objects: Iterable[CoercibleMapping], compat: str=…, join: str=…, priority_arg: Optional[int]=…, indexes: Optional[Mapping[Hashable, pd.Index]]=…, fill_value: object=…) -> Tuple[Dict[Hashable, Variable], Dict[Hashable, pd.Index]] - changed:
function merge_core(objs, compat=…, join=…, priority_arg=…, explicit_coords=…, indexes=…, fill_value=…) -> Tuple[OrderedDict[Hashable, Variable], Set[Hashable], Dict[Hashable, int]] → function merge_core(objects: Iterable[CoercibleMapping], compat: str=…, join: str=…, priority_arg: Optional[int]=…, explicit_coords: Optional[Sequence]=…, indexes: Optional[Mapping[Hashable, pd.Index]]=…, fill_value: object=…) -> _MergeResult - changed:
function unique_variable(name, variables, compat=…, equals=…) → function unique_variable(name: Hashable, variables: List[Variable], compat: str=…, equals: bool=…) -> Variable - added:
function collect_from_coordinates(list_of_coords: List[Coordinates]) -> Dict[Hashable, List[MergeElement]] - added:
function collect_variables_and_indexes(list_of_mappings: List[DatasetLike]) -> Dict[Hashable, List[MergeElement]] - added:
function merge_collected(grouped: Dict[Hashable, List[MergeElement]], prioritized: Mapping[Hashable, MergeElement]=…, compat: str=…) -> Tuple[Dict[Hashable, Variable], Dict[Hashable, pd.Index]] - added:
function merge_coordinates_without_align(objects: List[Coordinates], prioritized: Mapping[Hashable, MergeElement]=…, exclude_dims: AbstractSet=…) -> Tuple[Dict[Hashable, Variable], Dict[Hashable, pd.Index]] - added:
variable ArrayLike - added:
variable CoercibleMapping - added:
variable CoercibleValue - added:
variable DimsLike - added:
variable MergeElement - added:
variable VariableLike - added:
variable XarrayValue
- changed:
field BaseInterpolator.call_kwargs → field BaseInterpolator.call_kwargs: Dict[str, Any] - changed:
field BaseInterpolator.cons_kwargs → field BaseInterpolator.cons_kwargs: Dict[str, Any] - changed:
field BaseInterpolator.f → field BaseInterpolator.f: Callable - changed:
field BaseInterpolator.method → field BaseInterpolator.method: str - changed:
function get_clean_interp_index(arr, dim, use_coordinate=…) → function get_clean_interp_index(arr, dim: Hashable, use_coordinate: Union[str, bool]=…) - changed:
function interp_na(self, dim=…, use_coordinate=…, method=…, limit=…, **kwargs) → function interp_na(self, dim: Hashable=…, use_coordinate: Union[bool, str]=…, method: str=…, limit: int=…, max_gap: Union[int, float, str, pd.Timedelta, np.timedelta64]=…, **kwargs)
- removed:
function gradient(f, *varargs, axis=…, edge_order=…) - removed:
function isin(element, test_elements, assume_unique=…, invert=…) - removed:
function normalize_axis_tuple(axes, N) - removed:
variable gradient
- added:
variable DISPLAY_STYLE
- added:
function dataset_to_dataarray(obj: Dataset) -> DataArray - added:
function infer_template(func: Callable[..., T_DSorDA], obj: Union[DataArray, Dataset], *args, **kwargs) -> T_DSorDA - added:
function make_dict(x: Union[DataArray, Dataset]) -> Dict[Hashable, Any] - added:
function make_meta(obj) - added:
function map_blocks(func: Callable[..., T_DSorDA], obj: Union[DataArray, Dataset], args: Sequence[Any]=…, kwargs: Mapping[str, Any]=…) -> T_DSorDA - added:
variable T_DSorDA
- removed:
function remove_unused_levels(self) - added:
function count_not_none(*args) -> int
- changed:
method DataArrayResample.apply(func, shortcut=…, args=…, **kwargs) → method DataArrayResample.apply(func, args=…, shortcut=…, **kwargs) - added:
method DataArrayResample.map(func, shortcut=…, args=…, **kwargs) - added:
method DatasetResample.map(func, args=…, shortcut=…, **kwargs)
- removed:
function FrozenOrderedDict(*args, **kwargs) -> Frozen - added:
class Default(Enum) - added:
field Default.token - added:
function FrozenDict(*args, **kwargs) -> Frozen - added:
function infix_dims(dims_supplied: Collection, dims_all: Collection) -> Iterator
- removed:
property Variable.attrs -> OrderedDict[Any, Any] - changed:
method Variable.identical(other) → method Variable.identical(other, equiv=…) - changed:
method Variable.isel(indexers=…, drop=…, **indexers_kwargs) → method Variable.isel(indexers: Mapping[Hashable, Any]=…, **indexers_kwargs: Any) -> VariableType - changed:
method Variable.no_conflicts(other) → method Variable.no_conflicts(other, equiv=…) - added:
property Variable.attrs -> Dict[Hashable, Any] - added:
variable VariableType
- added:
export scatter