Stefan-Endres / shgo

Simplicial Homology Global Optimization
https://stefan-endres.github.io/shgo
MIT License
44 stars 12 forks source link

Warning on bounds w.r.t. symmetry #38

Open tessavdheiden opened 1 year ago

tessavdheiden commented 1 year ago

Hi,

Here you are using:

if (self.bounds[symmetry[i]] is not
        self.bounds[symmetry[j]]):

The line might be changed into:

if (not np.array_equal(self.bounds[symmetry[i]], self.bounds[symmetry[j]])):

This is because the tuples are changed into numpy arrays here.