Becksteinlab / kda

Python package used for the analysis of biochemical kinetic diagrams.
GNU General Public License v3.0
3 stars 1 forks source link

Replace deprecated `np.product()` function calls #72

Closed nawtrey closed 11 months ago

nawtrey commented 11 months ago

Recent CI runs have been giving the following warning:

kda/tests/test_kda.py: 1340 warnings
  C:\Users\nikol\OneDrive\projects\kinetic_diagram_analysis\kda\kda\diagrams.py:342: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
    K_cof = _get_cofactor_matrix(K_laplace=K_laplace)

A simple change from np.product() to np.prod() should fix this.

nawtrey commented 11 months ago

Fixed in #74.