67 Create a list of calculations by combining all parameters with all parameters you provide and
68 feeding the tuple into the parameter_creator_function.
69 If the kwargs_creator_function has a parameter named queue, the function feeds the corresponding
70 created queue into the parameter_creator_function.
71 The parameter_creator_function must return a dictionary for every combination of parameters it gets,
72 which will be used to construct a process out of it.
73 See ipython_handler_basf2/ipython_handler for an example.
75 Please note that a list of calculations acts the same as a single calculation you would get from
76 the process function. You can handle 10 calculations the same way you would handle a single one.
78 The kwargs_creator_function can transform the incoming parameters into different ones. To make this
79 more clear, the resulting dictionary created by the kwargs_creator_function is called kwargs.
80 These are the ones, that will be used to create a calculation process, so they must be compatible to the
81 calculation you chose (namely compatible with the append function of the _calculation_type).
84 kwargs_creator_function: A function with as many input parameters
85 as parameters you provide. If the function has an additional
86 queue parameter it is fed with the corresponding queue for this
88 parameter_lists: As many lists as you want. Every list is one
89 parameter. If you do not want a specific parameter
90 constellation to occur, you can return None in your
91 parameter_creator_function for this combination.
95 def kwargs_creator_function(par_1, par_2, par_3, queue):
96 kwargs = {... f(par_1) ... g(par_2) ... h(par_3)}
100 calculations = handler.process_parameter_space(kwargs_creator_function,
101 par_1=[1, 2, 3], par_2=["x", "y", "z"], par_3=[3, 4, 5])
103 The calculations will be created with the kwargs arguments.
106 all_kwargs, all_queues, all_parameters = calculation_list.create_all_calculations(kwargs_creator_function,
111 for kwargs, q, parameters
in zip(all_kwargs, all_queues, all_parameters):
113 parameters=parameters, **kwargs)