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

pydata / xarray / 2362 / 5
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 06 Sep 2016 04:49AM UTC
Files 40
Run time 1s
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

06 Sep 2016 04:00AM UTC coverage: 93.999% (+0.008%) from 93.991%
CONDA_ENV=py35

push

travis-ci

shoyer
Added convenience method for saving DataArray to netCDF file (#990)

* Added convenience method for saving DataArray to netCDF file

Added a simple function to DataArray that creates a dataset with one variable
called 'data' and then saves it to a netCDF file. All parameters are passed through
to to_netcdf().

Added an equivalent function called `open_dataarray` to be used to load from these files.

* Updated open_dataarray and da.to_netcdf to respect names & load any single var dataset

* Added tests for da.to_netcdf() and xr.open_dataarray()

* Implemented perfect round-tripping for to_netcdf and open_dataarray

Changed name that is used if da has no name
Stored old name in attrs so it can be replaced
Updated tests
Updated docs

* Updated Sphinx docs

* Added appropriate requires decorator for tests

* Added close() for DataArray, and moved closing code to BaseDataObject

When loading a DataArray, the _file_obj attribute is set to the same object
as the source Dataset's _file_obj. This can then be used to close the file
from the DataArray.

Tests have been updated to use this

* Switched to full func signature, used context mgr in tests

* Updated whats new to reference issue & attribute changes

* Moved repeated strings to constants & tidied up docstrings

5498 of 5849 relevant lines covered (94.0%)

0.94 hits per line

Source Files on job 2362.5 (CONDA_ENV=py35)
  • Tree
  • List 0
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2362
  • Travis Job 2362.5
  • 69ac5117 on github
  • Prev Job for CONDA_ENV=py35 on master (#2357.5)
  • Next Job for CONDA_ENV=py35 on master (#2365.5)
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