Skip to content

Commit

Permalink
RF: change deprecated uses of np.float
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Feb 23, 2021
1 parent 2bd9c19 commit 0301e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nipy/algorithms/utils/pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def pca(data, axis=0, mask=None, ncomp=None, standardize=True,
Parameters
----------
data : ndarray-like (np.float)
data : ndarray-like (float)
The array on which to perform PCA over axis `axis` (below)
axis : int, optional
The axis over which to perform PCA (axis identifying
Expand Down Expand Up @@ -230,7 +230,7 @@ def _get_covariance(data, UX, rmse_scales_func, mask):

def _get_basis_projections(data, subVX, rmse_scales_func):
ncomp = subVX.shape[0]
out = np.empty((ncomp,) + data.shape[1:], np.float)
out = np.empty((ncomp,) + data.shape[1:], float)
for i in range(data.shape[1]):
Y = data[:,i].reshape((data.shape[0], -1))
U = np.dot(subVX, Y)
Expand Down

0 comments on commit 0301e36

Please sign in to comment.