ucsd-ccbb / NetColoc

development of network co-localization tool
MIT License
13 stars 6 forks source link

numpy deprecation warning #13

Closed coleslaw481 closed 2 years ago

coleslaw481 commented 2 years ago

Description

There is a deprecation warning from numpy in network_colocalization.py script saying not to use np.matrix() if using python 3.10 and numpy 1.23.0

What I Did

make test
/Users/xxx/src/NetColoc/netcoloc/network_colocalization.py:281: 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.
  sim_rank = np.matrix(sim_rank)