Skip to content

Numpy update with dtype

Luis Aleixo requested to merge feature/numpy_dtype into master

With the newest numpy update release the pipeline was failing on the caimira/tests/ test.

The error is the following:

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

Problem: The test was joining objects (arrays or int/floats) of different dimensions in a single one. e.g. [[1,2,3], 10], triggering the error.

Solution: Added a dtype=object when defining the air_exchange array

Merge request reports