Skip to content

Commit

Permalink
show statistics without coffee lounge
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed Feb 13, 2015
1 parent 40ce077 commit 1bbc581
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coffee-break.jl
Expand Up @@ -75,6 +75,9 @@ function setup(lounge::CoffeeLounge, state::SolverState, net::Net)
end
end

function update_statistics(dummy::Nothing, key::String, val::StatisticsValue)
# dummy function used when you do not want to record statistics
end
function update_statistics(lounge::CoffeeLounge, key::String, val::StatisticsValue)
dict = get(lounge.statistics, key, StatisticsRecords())
dict[lounge.curr_iter] = val
Expand Down

0 comments on commit 1bbc581

Please sign in to comment.