Commits

remusao  committed 12d7399

code runnable with pypy or python2

  • Participants
  • Parent commits f82aec5

Comments (0)

Files changed (2)

File src/optimisation_composants.py

 
 from __future__ import print_function
 import random
-import numpypy as np
+try:
+    import numpypy as np
+except:
+    import numpy as np
 
 
 def init_fun():

File src/simulated_annealing.py

 from math import exp
 import random
-import numpypy as np
+try:
+    import numpypy as np
+except:
+    import numpy as np
 
 
 class SimulatedAnnealing(object):