Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DetectorWriteSim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EWMSCP
DetectorWriteSim
Commits
b9a8dafb
Commit
b9a8dafb
authored
1 year ago
by
Michael Reuscher
Browse files
Options
Downloads
Patches
Plain Diff
new working animation
parent
f0899894
No related branches found
No related tags found
1 merge request
!4
Python driver and data analysis part
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
simrunner/config_processing.py
+0
-2
0 additions, 2 deletions
simrunner/config_processing.py
simrunner/data_config.json
+1
-1
1 addition, 1 deletion
simrunner/data_config.json
simrunner/simulation.py
+10
-0
10 additions, 0 deletions
simrunner/simulation.py
with
11 additions
and
3 deletions
simrunner/config_processing.py
+
0
−
2
View file @
b9a8dafb
...
@@ -6,7 +6,6 @@ import os
...
@@ -6,7 +6,6 @@ import os
def
create_size_list
(
length
):
def
create_size_list
(
length
):
start
=
16
start
=
16
size_list
=
[
start
*
(
2
**
i
)
for
i
in
range
(
length
)]
size_list
=
[
start
*
(
2
**
i
)
for
i
in
range
(
length
)]
print
(
size_list
)
return
size_list
return
size_list
...
@@ -38,7 +37,6 @@ def set_arguments_various(da_config, test_data_path, args):
...
@@ -38,7 +37,6 @@ def set_arguments_various(da_config, test_data_path, args):
event_arguments
[
'
-o
'
]
=
event_name
event_arguments
[
'
-o
'
]
=
event_name
e_dict
[
event_name
]
=
event_arguments
e_dict
[
event_name
]
=
event_arguments
# Gib das Dictionary der Ereignisargumente für verschiedene Byte-Größen zurück
# Gib das Dictionary der Ereignisargumente für verschiedene Byte-Größen zurück
print
(
e_dict
)
return
e_dict
return
e_dict
...
...
This diff is collapsed.
Click to expand it.
simrunner/data_config.json
+
1
−
1
View file @
b9a8dafb
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"-N"
:
"12"
},
"-N"
:
"12"
},
"data_config_long"
:{
"data_config_long"
:{
"-s"
:
"1024"
,
"-s"
:
"1024"
,
"-n"
:
"
50
00"
,
"-n"
:
"
1
00"
,
"-i"
:
"0.1s"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"-N"
:
"4"
},
"data_config_help"
:{
"data_config_help"
:{
...
...
This diff is collapsed.
Click to expand it.
simrunner/simulation.py
+
10
−
0
View file @
b9a8dafb
import
os
import
os
import
sys
import
time
import
time
import
signal
import
signal
import
subprocess
import
subprocess
...
@@ -101,7 +102,16 @@ def run(e_dict, main_path):
...
@@ -101,7 +102,16 @@ def run(e_dict, main_path):
future
=
executor
.
submit
(
local_simulation
,
args
.
sim
,
e_dict
[
event
],
output_path
)
future
=
executor
.
submit
(
local_simulation
,
args
.
sim
,
e_dict
[
event
],
output_path
)
futures
.
append
((
folder_name
,
None
,
future
))
futures
.
append
((
folder_name
,
None
,
future
))
# Animierte Anzeige (z.B. sich drehende Röhre)
animation
=
[
'
|
'
,
'
/
'
,
'
-
'
,
'
\\
'
]
animation_index
=
0
for
folder_name
,
host
,
future
in
futures
:
for
folder_name
,
host
,
future
in
futures
:
while
not
future
.
done
():
sys
.
stdout
.
write
(
'
\r
Working
'
+
animation
[
animation_index
])
sys
.
stdout
.
flush
()
animation_index
=
(
animation_index
+
1
)
%
len
(
animation
)
time
.
sleep
(
0.1
)
output
,
errors
,
result
=
future
.
result
()
output
,
errors
,
result
=
future
.
result
()
terminal_msg
=
f
'
{
folder_name
}
_
{
host
if
host
else
""
}
done!
'
terminal_msg
=
f
'
{
folder_name
}
_
{
host
if
host
else
""
}
done!
'
if
not
stop_requested
:
if
not
stop_requested
:
...
...
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