Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ilp_keyboard_layout_optimization
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Björn Ludwig
ilp_keyboard_layout_optimization
Commits
0cef6767
Unverified
Commit
0cef6767
authored
3 years ago
by
Björn Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
docs(README and pull_and_optimize): update information on how to use script
parent
67ba0ce1
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Introduce Chars
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+6
-5
6 additions, 5 deletions
README.md
pull_and_optimize.sh
+14
-4
14 additions, 4 deletions
pull_and_optimize.sh
with
20 additions
and
9 deletions
README.md
+
6
−
5
View file @
0cef6767
...
...
@@ -22,15 +22,16 @@ actual code can then be found in the [_src/ilp_keyboard_layout_optimization_ sub
We included
[
a bash script _pull_and_optimize.sh_
](
https://git.tu-berlin.de/blutub3d/ilp_keyboard_layout_optimization/-/blob/main/pull_and_optimize.sh
)
in our codebase to streamline a remote development workflow. We work on the code on a
computer, that is well
equipped for that task. The committed and pushed code then
computer, that is well
-
equipped for that task. The committed and pushed code then
gets processed on another machine, which uses this script, to update its code base
and run the parameters handed over. It is designed to have the Python script name
for execution with a Python interpreter and PySCIPOpt as the only parameter, e.g.
and run the parameters handed over. It is designed to be called without parameters
to execute the _optimize_ module of the
[
latest version released on Test.PyPI.org
](
https://test.pypi.org/project/ilp-keyboard-layout-optimization/
)
.
```
shell
$
./pull_and_optimize.sh
ilp_optimize.py
$
./pull_and_optimize.sh
```
The execution requires the Docker image of our repository
[
docker_pyscipopt
](
https://github.com/BjoernLudwigPTB/docker_pyscipopt
)
to be built in advance but it
](
https://github.com/BjoernLudwigPTB/docker_pyscipopt
)
to be built in advance
,
but it
could be easily adapted for a local installation of the SCIP Optimization Suite.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pull_and_optimize.sh
+
14
−
4
View file @
0cef6767
...
...
@@ -2,9 +2,19 @@
# This script was written to streamline a remote development workflow. We work on the
# code on a computer, that is well equipped for that task. The committed and pushed
# code then gets processed on another machine, which uses this script, to update its
# code base and run the parameters handed over. It is designed to have the script
# name for execution with a Python interpreter and PySCIPOpt as the only parameter, e.g.
# $ ./pull_and_optimize.sh ilp_optimize.py
# code base and run the parameters handed over. It is designed to be called without
# parameters to execute the optimize module of the latest version released on
# Test.PyPI.org.
#
# $ ./pull_and_optimize.sh
#
# Alternatively you could invoke any other command in the Python interpreter by
# appending any command, normally appended to 'python <YOUR_COMMAND>' to the script.
# i.e.
#
#
# $ ./pull_and_optimize.sh -m pytest
#
# The execution requires the Docker image of our repository
# https://github.com/BjoernLudwigPTB/docker_pyscipopt to be built in advance.
SCRIPT_PATH
=
"
${
BASH_SOURCE
}
"
...
...
@@ -20,5 +30,5 @@ cd ${SCRIPT_DIR}
git pull
docker build
-t
ilp_keyboard_layout_optimization:latest docker/
docker run
-it
--rm
ilp_keyboard_layout_optimization
\
-m
ilp_keyboard_layout_optimization.optimize
${
1
:-
-m ilp_keyboard_layout_optimization.optimize
}
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