forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into maahn-groupy_plot2
* master: (51 commits) xarray.backends refactor (pydata#2261) Fix indexing error for data loaded with open_rasterio (pydata#2456) Properly support user-provided norm. (pydata#2443) pep8speaks (pydata#2462) isort (pydata#2469) tests shoudn't need to pass for a PR (pydata#2471) Replace the last of unittest with pytest (pydata#2467) Add python_requires to setup.py (pydata#2465) Update whats-new.rst (pydata#2466) Clean up _parse_array_of_cftime_strings (pydata#2464) plot.contour: Don't make cmap if colors is a single color. (pydata#2453) np.AxisError was added in numpy 1.13 (pydata#2455) Add CFTimeIndex.shift (pydata#2431) Fix FutureWarning in CFTimeIndex.date_type (pydata#2448) fix:2445 (pydata#2446) Enable use of cftime.datetime coordinates with differentiate and interp (pydata#2434) restore ddof support in std (pydata#2447) Future warning for default reduction dimension of groupby (pydata#2366) Remove incorrect statement about "drop" in the text docs (pydata#2439) Use profile mechanism, not no-op mutation (pydata#2442) ...
- Loading branch information
Showing
104 changed files
with
6,486 additions
and
2,051 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
- [ ] Closes #xxxx (remove if there is no corresponding issue, which should only be the case for minor changes) | ||
- [ ] Tests added (for all bug fixes or enhancements) | ||
- [ ] Tests passed (for all non-documentation changes) | ||
- [ ] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API (remove if this change should not be visible to users, e.g., if it is an internal clean-up, or if this is part of a larger project that will be documented later) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# File : .pep8speaks.yml | ||
|
||
scanner: | ||
diff_only: True # If True, errors caused by only the patch are shown | ||
|
||
pycodestyle: | ||
max-line-length: 79 | ||
ignore: # Errors and warnings to ignore | ||
- E402, # module level import not at top of file | ||
- E731, # do not assign a lambda expression, use a def | ||
- W503 # line break before binary operator |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,7 @@ | |
"scipy": [""], | ||
"bottleneck": ["", null], | ||
"dask": [""], | ||
"distributed": [""], | ||
}, | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from __future__ import absolute_import, division, print_function | ||
|
||
import numpy as np | ||
|
||
import xarray as xr | ||
|
||
from . import requires_dask | ||
|
||
|
||
class Unstacking(object): | ||
def setup(self): | ||
data = np.random.RandomState(0).randn(1, 1000, 500) | ||
self.ds = xr.DataArray(data).stack(flat_dim=['dim_1', 'dim_2']) | ||
|
||
def time_unstack_fast(self): | ||
self.ds.unstack('flat_dim') | ||
|
||
def time_unstack_slow(self): | ||
self.ds[:, ::-1].unstack('flat_dim') | ||
|
||
|
||
class UnstackingDask(Unstacking): | ||
def setup(self, *args, **kwargs): | ||
requires_dask() | ||
super(UnstackingDask, self).setup(**kwargs) | ||
self.ds = self.ds.chunk({'flat_dim': 50}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: test_env | ||
channels: | ||
- defaults | ||
dependencies: | ||
- python=3.7 | ||
- pip: | ||
- pytest | ||
- flake8 | ||
- mock | ||
- numpy | ||
- pandas | ||
- coveralls | ||
- pytest-cov |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,3 +151,5 @@ | |
plot.FacetGrid.set_titles | ||
plot.FacetGrid.set_ticks | ||
plot.FacetGrid.map | ||
|
||
CFTimeIndex.shift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.