Skip to content

Commit

Permalink
Checking netcdf4, cftime versions on travis.ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wcarthur committed Sep 12, 2018
1 parent afb8b0e commit 204c8b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ branches:
- notebooks
script:
- python installer/setup.py build_ext -i
- python -c "import netCDF4; print(netCDF4.__version__)"
- python -c "import cftime; print(cftime.__version__)"
- nosetests -v --with-coverage --cover-package=.
after_success: coveralls
notifications:
Expand Down
2 changes: 1 addition & 1 deletion Utilities/nctools.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def ncGetTimes(ncobj, name='time'):
else:
calendar = 'standard'

dates = num2date(times[:], units, calendar)
dates = num2date(times[:].data, units, calendar)

return np.array(dates, dtype=datetime)

Expand Down

0 comments on commit 204c8b0

Please sign in to comment.