sebhaan / DoEgen

DoEgen: A Python Library for Optimised Design of Experiment Generation and Evaluation
Other
76 stars 15 forks source link

Fix: Replace np.product with alternative for compatibility with NumPy 1.25+ #17

Open Daniel-Haas-B opened 2 months ago

Daniel-Haas-B commented 2 months ago

This PR addresses an issue caused by the deprecation of np.product in NumPy version 1.25 and later. In the current codebase, np.product is only used to calculate the total number of possible combinations of factors, so the required modifications are minute.

As of NumPy 1.25.0, np.product has been deprecated, which leads to compatibility issues for projects requiring numpy>=1.22.0. For instance, the tests are not run successfully.

Changes made:

Tests:

References:

Please review the changes and let me know if any additional modifications are required :)