Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier Stasse
Gepetto Utils
Commits
55186d35
Commit
55186d35
authored
Apr 09, 2018
by
Guilhem Saurel
Browse files
update scripts’ README
parent
3e1741a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/README.md
View file @
55186d35
# Scripts for Gepetto
## `doc.py` & `doc.sh`
Gets the projects / namespaces / branches to process from the
[
Gepetto Dashboard
](
http://rainboard.laas.fr
)
(activate
`keep_doc`
on the branches you need)
Run them in this order in a cron job to put the last generated doxygen HTML from gepgitlab on
`/net/cetus/data/gepetto/Doc`
.
## `release.sh`
`./release.sh <tag> [<package name>]`
...
...
@@ -7,6 +14,8 @@
Creates a signed tag named
`v<tag>`
and push it.
Also creates
`<package name>-<tag>.tar.gz{,.sig}`
including submodules.
Can be usefull if you don't have the JRL cmake submodule, otherwise just use
`make release VERSION=x.y.z && make dist`
## `video.py`
```
...
...
@@ -33,3 +42,19 @@ optional arguments:
--no-magic
-c, --crop Crop the speaker only from the video
```
## `parse_muscod_logs.py`
```
usage: parse_muscod_logs.py [-h] [-v] filename
Parse muscod's logs to get NDIS, the number of iterations & total computation
time
positional arguments:
filename
optional arguments:
-h, --help show this help message and exit
-v, --verbose
```
scripts/parse_muscod_logs.py
View file @
55186d35
...
...
@@ -5,7 +5,8 @@ import datetime
import
logging
import
re
args
=
argparse
.
ArgumentParser
()
DESC
=
"Parse muscod's logs to get NDIS, the number of iterations & total computation time"
args
=
argparse
.
ArgumentParser
(
description
=
DESC
)
args
.
add_argument
(
'filename'
,
type
=
argparse
.
FileType
(
'r'
))
args
.
add_argument
(
'-v'
,
'--verbose'
,
action
=
'store_true'
)
...
...
@@ -14,10 +15,6 @@ logger = logging.getLogger('parse_muscod_logs')
def
parse_muscod_logs
(
filename
,
verbose
):
"""
Parse muscod's logs to get NDIS, the number of iterations & total computation time
"""
ndis
=
iterations
=
total
=
None
logger
.
setLevel
(
logging
.
INFO
if
verbose
else
logging
.
WARNING
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment