Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
JPSreport
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
JuPedSim
JPSreport
Commits
e7d38671
Commit
e7d38671
authored
Jun 16, 2019
by
Gregor Jaeger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP:Utest, methods
parent
d0374289
Pipeline
#21725
passed with stages
in 37 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
4 deletions
+33
-4
Utest/Methods/ini_Methods.xml
Utest/Methods/ini_Methods.xml
+4
-3
Utest/Methods/runtest_Methods.py
Utest/Methods/runtest_Methods.py
+29
-1
No files found.
Utest/Methods/ini_Methods.xml
View file @
e7d38671
...
...
@@ -2,7 +2,7 @@
<JPSreport
project=
"JPS-Project"
version=
"0.8.2"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"../../xsd/jps_report.xsd"
>
<geometry
file =
"geo_Methods.xml"
/>
<logfile>
log_Methods.txt
</logfile>
<logfile>
log
file
_Methods.txt
</logfile>
<trajectories
format=
"txt"
unit=
"m"
>
<file
name=
"traj_Methods.txt"
/>
...
...
@@ -11,7 +11,7 @@
<output
location=
"Output_Methods/"
/>
<scripts
location=
"../scripts"
/>
<scripts
location=
"../
../
scripts"
/>
<measurement_areas
unit=
"m"
>
<area_B
id=
"1"
type=
"BoundingBox"
zPos=
"None"
>
...
...
@@ -31,6 +31,7 @@
<vertex
x=
"24"
y=
"12"
/>
<vertex
x=
"24"
y=
"8"
/>
<vertex
x=
"20"
y=
"8"
/>
<length_in_movement_direction
distance=
"4"
/>
</area_B>
<area_B
id=
"5"
type=
"BoundingBox"
zPos=
"None"
>
<vertex
x=
"20"
y=
"12"
/>
...
...
@@ -62,7 +63,7 @@
<profiles
enabled=
"false"
grid_size_x=
"0.20"
grid_size_y=
"0.20"
/>
</method_D>
<method_I
enabled=
"
tru
e"
>
<method_I
enabled=
"
fals
e"
>
<measurement_area
id=
"1"
start_frame=
"None"
stop_frame=
"None"
get_individual_FD=
"true"
/>
<cut_by_circle
enabled=
"true"
radius=
"1.0"
edges=
"10"
/>
</method_I>
...
...
Utest/Methods/runtest_Methods.py
View file @
e7d38671
#!/usr/bin/env python
print
(
"Test"
)
\ No newline at end of file
import
os
import
logging
logging
.
basicConfig
(
filename
=
"Utest_Methods.log"
,
level
=
logging
.
DEBUG
,
style
=
"{"
,
format
=
"{levelname:8}
\t
{message}
\t
"
)
logging
.
info
(
"start"
)
# cmd = 'jpsreport ini_Methods.xml'
cmd
=
'pwd'
logging
.
info
(
"{0}"
.
format
(
cmd
))
os
.
system
(
cmd
+
'> output.txt'
)
logging
.
info
(
"end"
)
logging
.
shutdown
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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