GEMScienceTools / gmpe-smtk

Python and OpenQuake-based Toolkit for Analysis of Strong Motions and Interpretation of GMPEs
GNU Affero General Public License v3.0
43 stars 33 forks source link

Fixes for the new numpy #106

Closed micheles closed 5 years ago

micheles commented 5 years ago

In the next version of the engine (3.6) we are going to upgrade numpy to the latest version, 1.16.3. This required some changes, in particular in the correlation model, that required the fixing in the SMTK that you see here. We do not plan to use the newest features from numpy for the moment, so the old version will work. The new numpy is deprecating the matrix class, regular arrays should be used instead and things like matrix.I, matrix.A1 must be removed.

NB: while at it, I am upgrading the SMTK tests to use pytest, same as for the engine.