Skip to content

Commit

Permalink
Correct bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Audrey Durand committed Jul 25, 2018
1 parent cf4e70b commit cd9ac71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ def __init__(self, config, config_conf, config_sted, autoquality=False, autopref
self.previous = self.config["output"]["previous"]
self.output = self.create_output_dir()


if len(self.objectives) > 2 and self.with_time:
if len(self.config["objectives"]) > 2 and self.with_time:
print("WARNING: Disabling time objective because you have more than two objectives!")
self.with_time = False

Expand Down

0 comments on commit cd9ac71

Please sign in to comment.