Skip to content

Failed

gpkit.tests.t_sub.TestModelSubs.test_vector_sweep (from gpkit.tests.t_sub.TestModelSubs-20240423135319)

Failing for the past 1 build (Since Failed #741 )
Took 0.22 sec.

Error Message

setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.

Stacktrace

Traceback (most recent call last):
  File "/jenkins/workspace/CE_gpkit_Install/buildnode/reynolds/optimizer/mosek/venv_jenkins/lib/python3.10/site-packages/gpkit/tests/t_sub.py", line 205, in test_vector_sweep
    sol = m.solve(verbosity=0)
  File "/jenkins/workspace/CE_gpkit_Install/buildnode/reynolds/optimizer/mosek/venv_jenkins/lib/python3.10/site-packages/gpkit/constraints/prog_factories.py", line 123, in solvefn
    constants, sweep, linked = parse_subs(self.varkeys, self.substitutions)
  File "/jenkins/workspace/CE_gpkit_Install/buildnode/reynolds/optimizer/mosek/venv_jenkins/lib/python3.10/site-packages/gpkit/nomials/substitution.py", line 25, in parse_subs
    append_sub(sub, keys, constants, sweep, linkedsweep)
  File "/jenkins/workspace/CE_gpkit_Install/buildnode/reynolds/optimizer/mosek/venv_jenkins/lib/python3.10/site-packages/gpkit/nomials/substitution.py", line 47, in append_sub
    sub = np.array(sub) if not hasattr(sub, "shape") else sub
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.