convexengineering / gpkit

Geometric programming for engineers
http://gpkit.readthedocs.org
MIT License
206 stars 40 forks source link

Deprecation warning in tests #1535

Closed pgkirsch closed 3 years ago

pgkirsch commented 3 years ago

FYI, with numpy 1.19.2:

...
Found the following solvers: mosek_cli, cvxopt
#     Replacing directory env
........................../Users/philippe.kirschen/Optimization/gpkit/gpkit/keydict.py:245: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
  value = np.array([clean_value(key, v) for v in value])
........................................................................................................................................