Skip to content
Snippets Groups Projects
Commit 0eaa4fca authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Adds runner for some parameter sets

parent 4278666b
No related branches found
No related tags found
1 merge request!3Version 0.2
#!/usr/bin/env bash
router=${1:-hcbf}
shed=shed1
epoch=$((7*24*60*60))
community="louvain"
ticks_per_packet=$((60))
time_to_live=$epoch
buffer_size=$((3*7*24*60/10))
duty=300
time python main.py \
--router "${router}" \
--community "${community}" \
--community-args \
"epoch=${epoch}" \
--trace "csv" \
--trace-args \
"path=shed/data/pp_${shed}_reduced.csv" \
--node-args \
"tick_time=${duty}" \
"buffer_size=${buffer_size}" \
--packet-args \
"ticks_per_packet=${ticks_per_packet}" \
"time_to_live=${time_to_live}" \
"start_delay=${epoch}"
# send slack notification if the script exists
status=$?
notify=$HOME/dev/slack-notifier/send_notification_via_slack.py
[[ -e "$notify" ]] && $notify "\`khadija done: exit($status)\`"
#!/usr/bin/env bash
router=${1:-hcbf}
shed=shed1
epoch=$((7*24*60*60))
community="louvain"
ticks_per_packet=$((60))
time_to_live=$((3*$epoch))
buffer_size=$((3*7*24*60*60))
duty=300
time python main.py \
--router "${router}" \
--community "${community}" \
--community-args \
"epoch=${epoch}" \
--trace "csv" \
--trace-args \
"path=shed/data/pp_${shed}_reduced.csv" \
--node-args \
"tick_time=${duty}" \
"buffer_size=${buffer_size}" \
--packet-args \
"ticks_per_packet=${ticks_per_packet}" \
"time_to_live=${time_to_live}" \
"start_delay=${epoch}"
# send slack notification if the script exists
status=$?
notify=$HOME/dev/slack-notifier/send_notification_via_slack.py
[[ -e "$notify" ]] && $notify "\`khadija done: exit($status)\`"
#!/usr/bin/env bash
router=${1:-hcbf}
shed=shed1
epoch=$((7*24*60*60))
community="louvain"
ticks_per_packet=$((60*120))
time_to_live=$((3*$epoch))
buffer_size=$((3*7*24*60*60))
duty=300
time python main.py \
--router "${router}" \
--community "${community}" \
--community-args \
"epoch=${epoch}" \
--trace "csv" \
--trace-args \
"path=shed/data/pp_${shed}_reduced.csv" \
--node-args \
"tick_time=${duty}" \
"buffer_size=${buffer_size}" \
--packet-args \
"ticks_per_packet=${ticks_per_packet}" \
"time_to_live=${time_to_live}" \
"start_delay=${epoch}"
# send slack notification if the script exists
status=$?
notify=$HOME/dev/slack-notifier/send_notification_via_slack.py
[[ -e "$notify" ]] && $notify "\`khadija done: exit($status)\`"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment