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

pydata / xarray / 2033
96%

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2016 12:27AM UTC
Jobs 7
Files 39
Run time 9min
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
2033

push

travis-ci

shoyer
keep_attrs for Dataset.resample and DataArray.resample (#829)

* initial addition of keep_attrs argument to resample, and tests

resample now has a keep_attrs argument that is passed on to reduction
operations. However, it is not being applied in all cases. Some tests
have been added that do not pass.

* moved keep_attrs kwarg from func to apply for DataArray

The funcs passed in to DataArrayGroupBy.apply did not respect the
keep_attrs argument, and seem to keep attributes by default. Now
DataArrayGroupBy.apply does the work of clearing result.attrs if
keep_attrs is False, and does nothing to the attributes otherwise.

This still needs to be reflected in the docstring.

* DataArrayGroupBy concat no longer sometimes copies metadata

DataArrayGroupBy._concat_shortcut copied metadata from itself to the
applied arrays, when it should not. Metadata copying should be, and is,
handled elsewhere.

With this fix, keep_attrs for resample methods is implemented and passes
the written tests. No other tests are broken.

* default for resample is now keep_attrs=False, tests for Dataset.resample

Tests have been added to make sure that keep_attrs applies to
Dataset attributes as well as the attributes of variables in that
Dataset.

resample now has keep_attrs=False as its default regardless of the
operation being completed (previously it was True for 'first' and
'last')

* cleaned up tests for keep_attrs option of resample

* added "what's new" notes for keep_attrs=False resampling option

3 of 3 new or added lines in 1 file covered. (100.0%)

5256 of 5436 relevant lines covered (96.69%)

5.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2033.1 (CONDA_ENV=py26) 20 Apr 2016 12:27AM UTC 0
89.46
Travis Job 2033.1
2 2033.2 (CONDA_ENV=py27-min) 20 Apr 2016 12:27AM UTC 0
80.26
Travis Job 2033.2
3 2033.3 (CONDA_ENV=py27-cdat+pynio) 20 Apr 2016 12:30AM UTC 0
87.09
Travis Job 2033.3
4 2033.4 (CONDA_ENV=py34) 20 Apr 2016 12:30AM UTC 0
75.26
Travis Job 2033.4
5 2033.5 (CONDA_ENV=py35) 20 Apr 2016 12:34AM UTC 0
94.13
Travis Job 2033.5
6 2033.6 (CONDA_ENV=py27-pydap) 20 Apr 2016 12:34AM UTC 0
86.57
Travis Job 2033.6
8 2033.8 (CONDA_ENV=py35-dask-dev) 20 Apr 2016 12:36AM UTC 0
82.21
Travis Job 2033.8
Source Files on build 2033
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2033
  • ecc44205 on github
  • Prev Build on master (#2028)
  • Next Build on master (#2045)
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

© 2026 Coveralls, Inc