We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b46dde2 commit 85b482eCopy full SHA for 85b482e
deap/tools/_hypervolume/pyhv.py
@@ -23,11 +23,14 @@
23
# License along with DEAP. If not, see <http://www.gnu.org/licenses/>.
24
25
from math import log, floor
26
-
27
import random
+import warnings
28
29
import numpy
30
31
+warnings.simplefilter("once", ImportWarning)
32
+warnings.warn("Falling back to the python version of hypervolume "
33
+ "module. Expect this to be very slow.", ImportWarning)
34
35
def hypervolume(pointset, ref):
36
"""Compute the absolute hypervolume of a *pointset* according to the
0 commit comments