<s> __author__ = '<STR_LIT>' <EOL> import os <EOL> from pypet import Environment <EOL> from pypet . utils . explore import cartesian_product <EOL> def multiply ( traj ) : <EOL> """<STR_LIT>""" <EOL> z = traj . x * traj . y <EOL> traj . f_add_result ( '<STR_LIT:z>' , z , comment = '<STR_LIT>' ) <EOL> filename = os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> env = Environment ( trajectory = '<STR_LIT>' , <EOL> filename = filename , <EOL> overwrite_file = True , <EOL> file_title = '<STR_LIT>' , <EOL> comment = '<STR_LIT>' , <EOL> large_overview_tables = True , <EOL> ) <EOL> traj = env . trajectory <EOL> traj . f_add_parameter ( '<STR_LIT:x>' , <NUM_LIT:1> , comment = '<STR_LIT>' ) <EOL> traj . f_add_parameter ( '<STR_LIT:y>' , <NUM_LIT:1> , comment = '<STR_LIT>' ) <EOL> traj . f_explore ( cartesian_product ( { '<STR_LIT:x>' : [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> , <NUM_LIT:4> ] , '<STR_LIT:y>' : [ <NUM_LIT:6> , <NUM_LIT:7> , <NUM_LIT:8> ] } ) ) <EOL> env . run ( multiply ) <EOL> from pypet . trajectory import Trajectory <EOL> del traj <EOL> env . disable_logging ( ) <EOL> del env <EOL> traj = Trajectory ( filename = filename ) <EOL> traj . f_load ( index = - <NUM_LIT:1> , load_parameters = <NUM_LIT:2> , load_results = <NUM_LIT:2> ) <EOL> print ( '<STR_LIT>' ) <EOL> print ( traj . run_00000001 . z ) </s>
