Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CoincellExperimentController
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Klemm, Carl Philipp
CoincellExperimentController
Commits
36c3061b
Commit
36c3061b
authored
1 year ago
by
Carl Philipp Klemm
Browse files
Options
Downloads
Patches
Plain Diff
run_expirament.sh: use mcu watchdog, allow user initated restarting of the expirament
parent
05a912eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_expirament.sh
+17
-1
17 additions, 1 deletion
run_expirament.sh
with
17 additions
and
1 deletion
run_expirament.sh
+
17
−
1
View file @
36c3061b
...
@@ -8,12 +8,28 @@ STOP=0
...
@@ -8,12 +8,28 @@ STOP=0
STEPFILE
=
/tmp/cchstep
STEPFILE
=
/tmp/cchstep
RESTART
=
0
RESTART
=
0
if
[[
$#
>
0
]]
;
then
echo
"Will load first step from
$STEPFILE
"
STEP
=
$(
awk
-F
,
'{ print $1 }'
$STEPFILE
)
if
[
$?
!=
0
]
;
then
echo
"could not read last state from
$STEPFILE
"
STOP
=
1
break
fi
SUBSTEP
=
$(
awk
-F
,
'{ print $2 }'
$STEPFILE
)
if
[
$?
!=
0
]
;
then
echo
"could not read last state from
$STEPFILE
"
STOP
=
1
break
fi
fi
while
[[
$STOP
==
0
&&
RESTART
-lt
100
]]
;
do
while
[[
$STOP
==
0
&&
RESTART
-lt
100
]]
;
do
echo
"Starting expirament at step
$STEP
substep
$SUBSTEP
"
echo
"Starting expirament at step
$STEP
substep
$SUBSTEP
"
rm
$STEPFILE
||
true
rm
$STEPFILE
||
true
coincellexpirament
-l
10
-c
"0,1,2,3,4,5,6,7"
-o
"
$OUTDIR
-
$RESTART
"
-s
$STEP
-k
$SUBSTEP
-f
$STEPFILE
coincellexpirament
-w
-l
10
-c
"0,1,2,3,4,5,6,7"
-o
"
$OUTDIR
-
$RESTART
"
-s
$STEP
-k
$SUBSTEP
-f
$STEPFILE
RET
=
$?
RET
=
$?
RESTART
=
$((
RESTART+1
))
RESTART
=
$((
RESTART+1
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment