Skip to content

Commit

Permalink
moved creation of round param dict into a function
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMollevik committed Mar 1, 2019
1 parent 972244d commit 2a05cf4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions talos/parameters/round_params.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
from numpy import random

def create_params_dict(self,_choice):
_round_params_dict = {}
x = 0
for key in self.param_reference.keys():
_round_params_dict[key] = self.param_grid[_choice][x]
x += 1

return _round_params_dict

def round_params(self):

Expand All @@ -20,10 +28,5 @@ def round_params(self):
self.param_log.remove(_choice)

# create a dictionary for the current round
_round_params_dict = {}
x = 0
for key in self.param_reference.keys():
_round_params_dict[key] = self.param_grid[_choice][x]
x += 1
return create_params_dict(self,_choice)

return _round_params_dict

0 comments on commit 2a05cf4

Please sign in to comment.