But not predictable ...
================ test session starts ================
platform linux -- Python 3.5.3, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /home/robert/openclimatedata/pyhector, inifile: setup.cfg
plugins: cov-2.5.1
collected 1 item
tests/test_pyhector.py F
===================== FAILURES
___________ test_output_variables
def test_output_variables():
results = pyhector.run(rcp26)
assert len(results.columns) == 3
> results = pyhector.run(rcp26, outputs="all")
tests/test_pyhector.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyhector/__init__.py:414: in run
h.run()
pyhector/__init__.py:134: in run
self._check(self.__run_size)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pyhector.Hector object at 0x7f3e03beb828>, v = -1
def _check(self, v):
if v < 0:
> raise HectorException(_lib.hector_get_last_error())
E pyhector.HectorException: b'Assertion failed: units mismatch'
pyhector/__init__.py:129: HectorException
============= 1 failed in 0.46 seconds ===============================