• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pydata / xarray / 7417
96%

Build:
DEFAULT BRANCH: master
Ran 23 Jun 2019 09:22AM UTC
Jobs 8
Files 108
Run time 14min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
7417

push

travis-ci

shoyer
ENH: keepdims=True for xarray reductions (#3033)

* ENH: keepdims=True for xarray reductions

Addresses #2170

Add new option `keepdims` to xarray reduce operations, following the
behaviour of Numpy.

`keepdims` may be passed to reductions on either Datasets or DataArrays,
and will result in the reduced dimensions being still present in the
output with size 1.

Coordinates that depend on the reduced dimensions will be removed from
the Dataset/DataArray

* Set the default to be `False`

* Correct lint error

* Apply suggestions from code review

Co-Authored-By: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>

* Add test for dask and fix implementation

* Move 'keepdims' up to where 'dims' is set

* Fix lint, add test for scalar variable

59 of 59 new or added lines in 6 files covered. (100.0%)

29518 of 30539 relevant lines covered (96.66%)

4.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7417.1 (CONDA_ENV=py35-min) 23 Jun 2019 09:22AM UTC 0
66.31
Travis Job 7417.1
2 7417.2 (CONDA_ENV=py36) 23 Jun 2019 09:28AM UTC 0
95.87
Travis Job 7417.2
3 7417.3 (CONDA_ENV=py37) 23 Jun 2019 09:27AM UTC 0
94.76
Travis Job 7417.3
4 7417.4 (CONDA_ENV=py36-rasterio) 23 Jun 2019 09:27AM UTC 0
93.36
Travis Job 7417.4
6 7417.6 (CONDA_ENV=lint) 23 Jun 2019 09:28AM UTC 0
Travis Job 7417.6
7 7417.7 (CONDA_ENV=py36-hypothesis) 23 Jun 2019 09:31AM UTC 0
Travis Job 7417.7
10 7417.10 (CONDA_ENV=py36-zarr-dev) 23 Jun 2019 09:37AM UTC 0
89.81
Travis Job 7417.10
11 7417.11 (CONDA_ENV=typing) 23 Jun 2019 09:36AM UTC 0
Travis Job 7417.11
Source Files on build 7417
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7417
  • ff419886 on github
  • Prev Build on master (#7415)
  • Next Build on master (#7422)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc