Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
Sören Henning
theodolite
Commits
a41b57ef
Commit
a41b57ef
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Rearrange use case enumeration in Python scripts
parent
a3d50b2e
No related branches found
No related tags found
2 merge requests
!88
Rearrange use case enumeration
,
!84
Gitlab CI for Theodolite-Kotlin-Quarkus
Pipeline
#2100
passed
4 years ago
Stage: build
Stage: test
Stage: check
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
execution/run_uc.py
+4
-4
4 additions, 4 deletions
execution/run_uc.py
with
4 additions
and
4 deletions
execution/run_uc.py
+
4
−
4
View file @
a41b57ef
...
...
@@ -141,9 +141,9 @@ def start_workload_generator(svc_yaml, wg_yaml, dim_value, uc_id):
wl_max_records
=
150000
wl_instances
=
(
num_sensors
+
wl_max_records
-
1
)
//
wl_max_records
# set parameters special for uc
2
if
uc_id
==
'
2
'
:
print
(
'
use uc
2
stuff
'
)
# set parameters special for uc
4
if
uc_id
==
'
4
'
:
print
(
'
use uc
4
stuff
'
)
num_nested_groups
=
dim_value
num_sensors
=
4
approx_num_sensors
=
num_sensors
**
num_nested_groups
...
...
@@ -161,7 +161,7 @@ def start_workload_generator(svc_yaml, wg_yaml, dim_value, uc_id):
replace_env_value
(
wg_containter
[
'
env
'
],
'
NUM_SENSORS
'
,
str
(
num_sensors
))
if
uc_id
==
'
2
'
:
# Special configuration for
uc2
if
uc_id
==
'
4
'
:
# Special configuration for
UC4
replace_env_value
(
wg_containter
[
'
env
'
],
'
NUM_NESTED_GROUPS
'
,
str
(
num_nested_groups
))
...
...
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