Module Assign NameStore Str Import alias identifier Import alias identifier Import alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Str keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Num keyword Str Expr Call AttributeLoad NameLoad attr Str Num keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad Dict Str Str ListLoad Num Num Num Num ListLoad Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Slice ListComp Num comprehension NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Print AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A __author__ Robert Meyer N/A multiprocessing mp N/A numpy np N/A os pypet Environment cartesian_product multiply N/A N/A traj result_list N/A N/A N/A Example of a sophisticated simulation that involves multiplying two values.

    This time we will store tha value in a shared list and only in the end add the result.

    :param traj:

        Trajectory containing
        the parameters in a particular combination,
        it also serves as a container for results.


     N/A z N/A N/A traj x N/A traj y N/A N/A result_list N/A N/A traj v_idx z N/A main N/A N/A N/A N/A N/A filename N/A N/A N/A os path join hdf5 example_12.hdf5 N/A env N/A Environment trajectory Multiplication filename filename file_title Example_12_Sharing_Data overwrite_file True comment The first example! continuable False multiproc True ncores 2 N/A traj N/A env trajectory N/A N/A N/A traj f_add_parameter x 1 comment I am the first dimension! N/A N/A N/A traj f_add_parameter y 1 comment I am the second dimension! N/A N/A N/A traj f_explore N/A cartesian_product N/A x y N/A 1 2 3 4 N/A 6 7 8 N/A result_list N/A N/A N/A N/A mp Manager list N/A N/A result_list N/A N/A 0 N/A _dummy N/A range N/A len traj N/A N/A N/A env run multiply result_list N/A N/A N/A traj f_add_result z N/A N/A np array result_list N/A N/A traj z N/A N/A N/A env disable_logging N/A N/A N/A __name__ __main__ N/A N/A N/A main