Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
AMBS
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
AMBS
Commits
ec02977e
Commit
ec02977e
authored
4 years ago
by
Michael Langguth
Browse files
Options
Downloads
Patches
Plain Diff
Extended addition of experimental directory to paths in runscripts.
parent
402e182a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#46877
failed
4 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
video_prediction_savp/env_setup/generate_workflow_runscripts.sh
+22
-6
22 additions, 6 deletions
...prediction_savp/env_setup/generate_workflow_runscripts.sh
with
22 additions
and
6 deletions
video_prediction_savp/env_setup/generate_workflow_runscripts.sh
+
22
−
6
View file @
ec02977e
...
@@ -35,6 +35,15 @@ check_argin() {
...
@@ -35,6 +35,15 @@ check_argin() {
fi
fi
done
done
}
}
add_exp_dir
()
{
prefix
=
$1
if
[[
`
grep
"/
${
prefix
}
/$"
${
target_script
}
`
]]
;
then
echo
"Add experimental directory after '
${
prefix
}
/' in runscript '
${
target_script
}
'"
sed
-i
"s|/
${
prefix
}
/
$|
/
${
prefix
}
/
${
exp_dir
}
/|g"
${
target_script
}
status
=
1
fi
}
# **************** Auxilary function ****************
# **************** Auxilary function ****************
HOST_NAME
=
`
hostname
`
HOST_NAME
=
`
hostname
`
...
@@ -132,12 +141,19 @@ fi
...
@@ -132,12 +141,19 @@ fi
# finally set experimental directory if exp_dir is present
# finally set experimental directory if exp_dir is present
if
[[
!
-z
"
${
exp_dir
}
"
]]
;
then
if
[[
!
-z
"
${
exp_dir
}
"
]]
;
then
if
[[
`
grep
"/preprocessedData/$"
${
target_script
}
`
]]
;
then
# the dollar-signs ensures that /preprocessedData/ is the suffix
status
=
0
# i.e. this prevents us from modifying anything in DataPreprocess_[exp_id].sh
# where thsi is supposed to be done automatically
add_exp_dir preprocessedData
sed
-i
"s|/preprocessedData/
$|
/preprocessedData/
${
exp_dir
}
/|g"
${
target_script
}
add_exp_dir models
else
add_exp_dir results
echo
"WARNING: -exp_dir was passed, but no path with .../preprocessedData/ found in
${
target_script
}
"
#if [[ `grep "/preprocessedData/$" ${target_script}` ]]; then # the dollar-signs ensures that /preprocessedData/ is the suffix
# # i.e. this prevents us from modifying anything in DataPreprocess_[exp_id].sh
# # where this is supposed to be done during the Preprocessing step itself
# sed -i "s|/preprocessedData/$|/preprocessedData/${exp_dir}/|g" ${target_script}
#fi
if
[[
${
status
}
==
0
]]
;
then
echo
"WARNING: -exp_dir has been passed, but no addition to any path in runscript at hand done..."
fi
fi
fi
fi
...
...
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