Skip to content

Commit d41c734

Browse files
authored
Merge pull request #200 from ha-mano/fix/flake8-global
Remove unnecessary 'global' declarations causing flake8 F824 errors
2 parents 864bbb3 + 24338a8 commit d41c734

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tools/cmaes_visualizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def init():
198198

199199

200200
def get_next_popsize_sigma():
201-
global optimizer, n_restarts, poptype, small_n_eval, large_n_eval, sigma0
201+
global n_restarts, poptype, small_n_eval, large_n_eval
202202
if args.restart_strategy == "ipop":
203203
n_restarts += 1
204204
popsize = optimizer.population_size * inc_popsize

tools/ws_cmaes_visualizer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,6 @@ def init():
241241

242242

243243
def update(frame):
244-
global solutions
245-
246244
for i in range(args.pop_per_frame):
247245
x1 = (x1_upper_bound - x1_lower_bound) * rng.random() + x1_lower_bound
248246
x2 = (x2_upper_bound - x2_lower_bound) * rng.random() + x2_lower_bound

0 commit comments

Comments
 (0)