Github user MJJoyce commented on the pull request:
https://github.com/apache/climate/pull/262#issuecomment-158216562
Note, the build is still failing after updating this dependency. These are
likely a result of the multitude of changes that were made while the tests were
broken from this library missing. The DAP failure is the same old nonsense that
never ends as well ...
```
| -> nosetests
E.................................................................................FF.F....................................
======================================================================
ERROR: test suite for <class 'ocw.tests.test_dap.TestDap'>
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/nose/suite.py",
line 208, in run
self.setUp()
File
"/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/nose/suite.py",
line 291, in setUp
self.setupContext(ancestor)
File
"/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/nose/suite.py",
line 314, in setupContext
try_run(context, names)
File
"/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/nose/util.py",
line 470, in try_run
return func()
File
"/Users/mjjoyce/Coding/Climate/github-climate/ocw/tests/test_dap.py", line 28,
in setup_class
self.dataset = dap.load(self.url, 'sst', name=self.name)
File
"/Users/mjjoyce/Coding/Climate/github-climate/ocw/data_source/dap.py", line 42,
in load
d = open_url(url)
File
"/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/pydap/client.py",
line 60, in open_url
dataset = response(url)
File
"/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/pydap/client.py",
line 206, in _ddsdas
respdds, dds = request(ddsurl)
File
"/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/pydap/util/http.py",
line 50, in request
raise ServerError(msg)
ServerError: 'Server error 1: "Cannot locate resource:
http://test.opendap.org/opendap/hyrax/data/nc/sst.mnmean.nc.gz.dds"'
-------------------- >> begin captured logging << --------------------
pydap: INFO: Opening
http://test.opendap.org/dap/data/nc/sst.mnmean.nc.gz.dds
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: To test load_file function for latitudes
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/mjjoyce/Coding/Climate/github-climate/ocw/tests/test_local.py", line
48, in test_function_load_file_lats
self.assertItemsEqual(local.load_file(self.file_path, "value").lats,
self.latitudes)
AssertionError: Element counts were not equal:
First has 0, Second has 0: masked
First has 0, Second has 0: masked
First has 0, Second has 0: masked
First has 0, Second has 0: masked
First has 0, Second has 0: masked
======================================================================
FAIL: To test load_file function for longitudes
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/mjjoyce/Coding/Climate/github-climate/ocw/tests/test_local.py", line
53, in test_function_load_file_lons
self.assertItemsEqual(local.load_file(self.file_path, "value").lons,
self.longitudes)
AssertionError: Element counts were not equal:
First has 0, Second has 0: masked
First has 0, Second has 0: masked
First has 0, Second has 0: masked
First has 0, Second has 0: masked
First has 0, Second has 0: masked
======================================================================
FAIL: To test load_file function for values
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/mjjoyce/Coding/Climate/github-climate/ocw/tests/test_local.py", line
65, in test_function_load_file_values
self.assertTrue(numpy.allclose(local.load_file(self.file_path,
"value").values, new_values))
AssertionError: masked is not true
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---