Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw
-
Labels:
-
Story Points:1
-
Epic Link:
-
Sprint:AP S19-2
-
Team:Alert Production
Description
Building afw with Numpy 1.15 gives a large number of FutureWarning and PendingDeprecationWarning, such as:
PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
|
dtype=float))
|
|
FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
|
array = self._array[allSlices]
|
|
FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.
|
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.
|
Rewrite the code to use non-deprecated APIs, as long as it's possible to do so using the Numpy 1.14 API.
Hi Russell Owen, can you take a quick look at these changes? Thanks!