Skip to content

Commit

Permalink
Use plotting facilities if verbose flag is present.
Browse files Browse the repository at this point in the history
  • Loading branch information
maemre committed Mar 24, 2015
1 parent 5b224a6 commit 6d8ff26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Rasim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ using Channel.Gilbert
using HDF5
using JLD
using Movement
#using Plots

if verbose
using Plots
end

using Base.Collections
using Util

Expand Down Expand Up @@ -370,6 +374,7 @@ function run_simulation{AgentT <: Agent}(:: Type{AgentT}, at_no :: Int, P :: Par
avg_buf_levels = mean(buf_levels)
avg_buf_overflows = mean(buf_overflow)
@save joinpath(output_dir, string(AgentT, ".jld")) avg_energies avg_bits avg_buf_levels avg_buf_overflows generated_packets tried_packets sent_packets init_distances final_distances
#@save "trajectories.jld" trajectories
end

function run_whole_simulation(P :: ParamT)
Expand Down

0 comments on commit 6d8ff26

Please sign in to comment.