Failed
gpkit.tests.from_paths.TestFiles.test_SPaircraft_py_mosek (from gpkit.tests.from_paths.TestFiles-20190827112959)
Failing for the past 1 build
(Since Failed
)
Error Message
Cannot compare Quantity and <type 'float'>
Stacktrace
Traceback (most recent call last): File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/tests/helpers.py", line 64, in test testfn(name, import_dict, path)(self) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/tests/from_paths.py", line 51, in <lambda> lambda self: getattr(self, name)())) # pylint:disable=undefined-variable File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/tests/from_paths.py", line 37, in test_fn mod = __import__(os.path.basename(path)[:-3]) File "SPaircraft.py", line 94, in <module> sol = test() File "SPaircraft.py", line 76, in test print m File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/repr_conventions.py", line 167, in __str__ return self.str_without() # pylint: disable=no-member File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/constraints/set.py", line 319, in str_without return "\n".join(self.lines_without(excluded)) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/constraints/set.py", line 294, in lines_without clines = try_str_without(constraint, excluded).split("\n") File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/small_scripts.py", line 37, in try_str_without return item.str_without(excluded) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/constraints/set.py", line 319, in str_without return "\n".join(self.lines_without(excluded)) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/constraints/set.py", line 294, in lines_without clines = try_str_without(constraint, excluded).split("\n") File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/small_scripts.py", line 37, in try_str_without return item.str_without(excluded) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/constraints/set.py", line 319, in str_without return "\n".join(self.lines_without(excluded)) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/constraints/set.py", line 294, in lines_without clines = try_str_without(constraint, excluded).split("\n") File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/small_scripts.py", line 37, in try_str_without return item.str_without(excluded) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/constraints/set.py", line 319, in str_without return "\n".join(self.lines_without(excluded)) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/constraints/set.py", line 294, in lines_without clines = try_str_without(constraint, excluded).split("\n") File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/small_scripts.py", line 37, in try_str_without return item.str_without(excluded) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/constraints/single_equation.py", line 20, in str_without try_str_without(self.right, excluded)) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/small_scripts.py", line 37, in try_str_without return item.str_without(excluded) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/nomials/core.py", line 19, in str_without return self.parse_ast(excluded) + units File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/repr_conventions.py", line 106, in parse_ast right = parenthesize(strify(values[1], excluded)) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/gpkit/gpkit/repr_conventions.py", line 42, in strify if (val > np.pi/12 and val < 100*np.pi # within bounds? File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/venv2_gpkit/lib/python2.7/site-packages/pint/quantity.py", line 1203, in <lambda> __gt__ = lambda self, other: self.compare(other, op=operator.gt) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/venv2_gpkit/lib/python2.7/site-packages/pint/quantity.py", line 75, in wrapped result = f(self, *args, **kwargs) File "/Users/jenkins/workspace/gplibrary_Push_Models/mosek/venv2_gpkit/lib/python2.7/site-packages/pint/quantity.py", line 1190, in compare raise ValueError('Cannot compare Quantity and {}'.format(type(other))) ValueError: Cannot compare Quantity and <type 'float'>