Skip to content
Snippets Groups Projects
Commit 7961ac82 authored by jgatt's avatar jgatt
Browse files

added docstring function test_multi_behavior.py

parent 5826c805
Branches
Tags
1 merge request!16Merge request multibehavior
Pipeline #5826 passed
...@@ -6,6 +6,8 @@ Platform = namedtuple('Platform', ['name', 'filename']) ...@@ -6,6 +6,8 @@ Platform = namedtuple('Platform', ['name', 'filename'])
two_machine_platform = Platform(name='two_machine_platform', filename='test/platforms/multicore/2machines.xml') two_machine_platform = Platform(name='two_machine_platform', filename='test/platforms/multicore/2machines.xml')
def make_monolithic_file(user_name, input_json, probability_name, seed=None, red_windows=None, yellow_windows=None): def make_monolithic_file(user_name, input_json, probability_name, seed=None, red_windows=None, yellow_windows=None):
""" create a user_description where every user with names in user_name and workload in input_json do only the behavior
given in probability_name with the provided seed and red_windows and yellow_windows """
assert len(user_name) == len(input_json), "The three lists should be of the same size" assert len(user_name) == len(input_json), "The three lists should be of the same size"
schedconf_file = 'test-instances/user_description_file.json' schedconf_file = 'test-instances/user_description_file.json'
error_file = { error_file = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment