Skip to content

Commit

Permalink
Merge pull request #286 from pyGSTio/bugfix-germsel-initialization
Browse files Browse the repository at this point in the history
Bugfix germsel initialization
  • Loading branch information
sserita committed Dec 21, 2022
2 parents 5e09748 + 7ea6216 commit 58a51e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pygsti/algorithms/germselection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1479,8 +1479,7 @@ def find_germs_depthfirst(model_list, germs_list, randomize=True,
if force:
if force == "singletons":
weights[_np.where(germLengths == 1)] = 1
goodGerms = [germ for germ
in _np.array(germs_list)[_np.where(germLengths == 1)]]
goodGerms = [germ for i, germ in enumerate(germs_list) if germLengths[i] == 1]
else: # force should be a list of Circuits
for opstr in force:
weights[germs_list.index(opstr)] = 1
Expand Down

0 comments on commit 58a51e0

Please sign in to comment.