Skip to content

Commit

Permalink
cleanup program arguments part 3
Browse files Browse the repository at this point in the history
fixes in the code: argument variables where read but not used, they are
now removed
  • Loading branch information
portaloffreedom committed Aug 7, 2019
1 parent e3e69af commit a5427a3
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion experiments/examples/manager_pop.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ async def run():
offspring_size=offspring_size,
experiment_name=settings.experiment_name,
experiment_management=experiment_management,
measure_individuals=settings.measure_individuals,
)

n_cores = settings.n_cores
Expand Down
1 change: 0 additions & 1 deletion experiments/examples/watch_best_robots.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ async def run():
offspring_size=50,
experiment_name=settings.experiment_name,
experiment_management=experiment_management,
measure_individuals=settings.measure_individuals,
)

settings = parser.parse_args()
Expand Down
1 change: 0 additions & 1 deletion experiments/karines_experiments/manager_pop.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def fitness_function(robot_manager, robot):
offspring_size=offspring_size,
experiment_name=settings.experiment_name,
experiment_management=experiment_management,
measure_individuals=settings.measure_individuals,
)

settings = parser.parse_args()
Expand Down
1 change: 0 additions & 1 deletion experiments/karines_experiments/manager_pop_lava.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def fitness_function(robot_manager, robot):
offspring_size=offspring_size,
experiment_name=settings.experiment_name,
experiment_management=experiment_management,
measure_individuals=settings.measure_individuals,
)

settings = parser.parse_args()
Expand Down
1 change: 0 additions & 1 deletion experiments/karines_experiments/watch_best_robots.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ async def run():
offspring_size=50,
experiment_name=settings.experiment_name,
experiment_management=experiment_management,
measure_individuals=settings.measure_individuals,
)

settings = parser.parse_args()
Expand Down
5 changes: 1 addition & 4 deletions pyrevolve/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,5 @@ def make_revolve_config(conf):
"""
conf.enable_wheel_parts = False

conf.brain_conf = {
'learner': conf.learner,
'genome': conf.genome,
}
conf.brain_conf = {}
return conf
3 changes: 0 additions & 3 deletions pyrevolve/evolution/population.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def __init__(self,
evaluation_time,
experiment_name,
experiment_management,
measure_individuals,
offspring_size=None,
next_robot_id=1):
"""
Expand All @@ -45,7 +44,6 @@ def __init__(self,
:param evaluation_time: duration of an experiment
:param experiment_name: name for the folder of the current experiment
:param experiment_management: object with methods for managing the current experiment
:param measure_individuals: weather or not to perform phenotypic measurements
:param offspring_size (optional): size of offspring (for steady state)
"""
self.population_size = population_size
Expand All @@ -63,7 +61,6 @@ def __init__(self,
self.evaluation_time = evaluation_time
self.experiment_name = experiment_name
self.experiment_management = experiment_management
self.measure_individuals = measure_individuals
self.offspring_size = offspring_size
self.next_robot_id = next_robot_id

Expand Down

0 comments on commit a5427a3

Please sign in to comment.