summaryrefslogtreecommitdiff
path: root/simulations/results/paper.sh
diff options
context:
space:
mode:
authorLoïc Guégan <loic.guegan@mailbox.org>2025-09-23 12:14:53 +0200
committerLoïc Guégan <loic.guegan@mailbox.org>2025-09-23 12:14:53 +0200
commit5b039db15f54f98085fa1b5b22efaa86c49db370 (patch)
tree151ff76b89a4d718c332912cfc9c163db2c2a032 /simulations/results/paper.sh
parenta7ae172acb70d3545460fbc468c8d5c7e2cce0ad (diff)
Cleaning result folder
Diffstat (limited to 'simulations/results/paper.sh')
-rwxr-xr-xsimulations/results/paper.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/simulations/results/paper.sh b/simulations/results/paper.sh
index e97ef7d..f2c12af 100755
--- a/simulations/results/paper.sh
+++ b/simulations/results/paper.sh
@@ -6,7 +6,7 @@ wai=$(dirname $(readlink -f "$0"))
scenarios="${wai}/../scenarios"
inputs="${wai}/../inputs.json"
simulator="make -C ${wai}/../ run"
-sched="${wai}/scheduler/analysis.sh"
+sched="${wai}/analysis/scheduler/analysis.sh"
parser="${wai}/../parser.awk"
results="${wai}/results.csv"
aheaders="simkey,wireless,wakeupfor,energy_constraint,coverage_constraint,model"
@@ -17,7 +17,7 @@ gen_log=0 # Should we generate logs ?
run-simulation () {
# Generate inputs
$scenarios $seed $simtime $wakeupevery $wakeupfor $n_nodes $extended $hint $poff $pon $prx $ptx $datasize $bitrate $hintsize $latency > "$inputs"
-
+
# Init logs
[ $gen_log -eq 1 ] && echo -e "* seed=$seed simtime=$simtime wakeupevery=$wakeupevery wakeupfor=$wakeupfor n_nodes=$n_nodes extended=$extended hint=$hint poff=$poff pon=$pon prx=$prx ptx=$ptx datasize=$datasize bitrate=$bitrate \n" >> "${log_file}"
@@ -28,7 +28,7 @@ run-simulation () {
# Gen csv
if [ ! -e "$results" ]
- then
+ then
cat $tmp | $parser | sed "1 s/$/,${aheaders}/g" | sed "2,\$s/$/,${avalues}/" > "$results"
else
cat $tmp | $parser | sed 1d | sed "s/$/,${avalues}/" >> "$results"
@@ -91,7 +91,7 @@ do
ptx=0.65
latency=0
fi
-
+
# Configure simulation parameters
extended="false"
hint="false"
@@ -112,6 +112,6 @@ do
printf "\rSeed run ${seed}/${nseed}"
run-simulation
done
- echo
+ echo
done < <(printf '%s\n' "$parameters")
-done \ No newline at end of file
+done