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
c5c59a04
Commit
c5c59a04
authored
1 year ago
by
Michael Reuscher
Browse files
Options
Downloads
Patches
Plain Diff
args for asapo and for long event now bool
parent
c1d1aaab
No related branches found
No related tags found
1 merge request
!4
Python driver and data analysis part
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
simrunner/config_processing.py
+2
-2
2 additions, 2 deletions
simrunner/config_processing.py
simrunner/main.py
+3
-3
3 additions, 3 deletions
simrunner/main.py
with
5 additions
and
5 deletions
simrunner/config_processing.py
+
2
−
2
View file @
c5c59a04
...
...
@@ -24,7 +24,7 @@ def read_config(asapo):
def
set_arguments_various
(
da_config
,
test_data_path
,
args
):
data_config
=
da_config
e_dict
=
{}
byte_sizes
=
create_size_list
(
int
(
args
.
AmountOfSets
)
)
byte_sizes
=
create_size_list
(
args
.
AmountOfSets
)
# Loop durch jede Byte-Größe, um entsprechende Ereignisargumente zu erstellen
for
size
in
byte_sizes
:
event_name
=
f
'
Data_Set_
{
size
}
'
...
...
@@ -64,7 +64,7 @@ def set_arguments_long(da_config, test_data_path):
# Function to create the list of event arguments based on the chosen function
def
create_event_list
(
args
,
test_data_path
):
if
args
.
function
==
'
long
'
:
if
args
.
long
:
e_list
=
set_arguments_long
(
read_config
(
args
.
asapo
),
test_data_path
)
else
:
e_list
=
set_arguments_various
(
read_config
(
args
.
asapo
),
test_data_path
,
args
)
...
...
This diff is collapsed.
Click to expand it.
simrunner/main.py
+
3
−
3
View file @
c5c59a04
...
...
@@ -23,13 +23,13 @@ def parse_arguments():
help
=
'
Host addresses of remote machines default: local
'
)
parser
.
add_argument
(
'
-u
'
,
'
--user
'
,
type
=
str
,
default
=
current_user
,
help
=
'
Username for SSH connection default: current user
'
)
parser
.
add_argument
(
'
-
f
'
,
'
--
functi
on
'
,
choices
=
[
'
various
'
,
'
long
'
],
default
=
'
various
'
,
help
=
'
Choose function to execute default: various
'
)
parser
.
add_argument
(
'
-
l
'
,
'
--
l
on
g
'
,
action
=
'
store_true
'
,
help
=
'
Do Eventtyp long? default = false
'
)
parser
.
add_argument
(
'
-d
'
,
'
--data
'
,
type
=
str
,
default
=
main_directory
,
help
=
'
Folder to store the date for visualizer default: ./
'
)
parser
.
add_argument
(
'
-p
'
,
'
--testData
'
,
type
=
str
,
default
=
main_directory
,
help
=
'
Folder to store the test data from detector sim default: ./
'
)
parser
.
add_argument
(
'
-a
'
,
'
--AmountOfSets
'
,
type
=
str
,
default
=
'
23
'
,
parser
.
add_argument
(
'
-a
'
,
'
--AmountOfSets
'
,
type
=
int
,
default
=
23
,
help
=
'
Amount of Data_Sets, default = 23
'
)
parser
.
add_argument
(
'
--asapo
'
,
action
=
'
store_true
'
,
help
=
'
Stream to asapo default = false
'
)
...
...
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