Skip to content

Commit

Permalink
Update analysis.critical_points
Browse files Browse the repository at this point in the history
  • Loading branch information
schoonhovenrichard committed Aug 9, 2021
1 parent ba4c951 commit 88c359d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bloopy/analysis/critical_points.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import itertools
import warnings
import numpy as np

import bloopy.analysis.analysis_utils as anutil
from bloopy.individual import individual
import bloopy.utils as utils


def classify_points(bsize, bound_list, nidxs_dict, method='bounded'):
Expand Down Expand Up @@ -142,7 +145,7 @@ def sizes_minima(sspace, bsize, bound_list, fitfunc, method="bounded"):
total = 0
hole_depths = []
for x in itertools.product(*var_ranges):
anutil.set_bitstring(indiv, list(x))
utils.set_bitstring(indiv, list(x))
xfit = fitfunc(indiv.bitstring)

if method == "circular":
Expand All @@ -158,7 +161,7 @@ def sizes_minima(sspace, bsize, bound_list, fitfunc, method="bounded"):
is_minimal = True
nfits = []
for nbour in nbours:
anutil.set_bitstring(indiv, nbour)
utils.set_bitstring(indiv, nbour)
nfit = fitfunc(indiv.bitstring)
nfits.append(nfit)
if nfit < xfit:# Neighbour has lower fitness
Expand Down

0 comments on commit 88c359d

Please sign in to comment.