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

pydata / xarray / 2362
96%

Build:
DEFAULT BRANCH: master
Ran 06 Sep 2016 04:42AM UTC
Jobs 7
Files 40
Run time 6min
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
2362

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

5629 of 5849 relevant lines covered (96.24%)

5.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2362.1 (CONDA_ENV=py27-min) 06 Sep 2016 04:42AM UTC 0
75.4
Travis Job 2362.1
2 2362.2 (CONDA_ENV=py27-cdat+pynio) 06 Sep 2016 04:44AM UTC 0
83.45
Travis Job 2362.2
3 2362.3 (CONDA_ENV=py33) 06 Sep 2016 04:45AM UTC 0
75.24
Travis Job 2362.3
4 2362.4 (CONDA_ENV=py34) 06 Sep 2016 04:45AM UTC 0
75.67
Travis Job 2362.4
5 2362.5 (CONDA_ENV=py35) 06 Sep 2016 04:49AM UTC 0
94.0
Travis Job 2362.5
6 2362.6 (CONDA_ENV=py27-pydap) 06 Sep 2016 04:47AM UTC 0
86.82
Travis Job 2362.6
8 2362.8 (CONDA_ENV=py35-dask-dev) 06 Sep 2016 04:49AM UTC 0
82.39
Travis Job 2362.8
Source Files on build 2362
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2362
  • 69ac5117 on github
  • Prev Build on master (#2357)
  • Next Build on master (#2365)
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