Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX #117 #232

Merged
merged 2 commits into from
Apr 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions smac/tae/execute_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def run(self, config, instance=None,
additional_info: dict
all further additional run information
"""

# walltime for pynisher has to be a rounded up integer
if cutoff is not None:
cutoff = int(math.ceil(cutoff))

arguments = {'logger': logging.getLogger("pynisher"),
'wall_time_in_s': cutoff,
Expand Down
3 changes: 0 additions & 3 deletions smac/tae/execute_ta_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ def start(self, config:Configuration,
if self.stats.is_budget_exhausted():
raise BudgetExhaustedException("Skip target algorithm run due to exhausted configuration budget")

if cutoff is not None:
cutoff = int(math.ceil(cutoff))

status, cost, runtime, additional_info = self.run(config=config,
instance=instance,
cutoff=cutoff,
Expand Down