<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> import os <EOL> from pypet import Environment , cartesian_product <EOL> from pypet import pypetconstants <EOL> def multiply ( traj ) : <EOL> """<STR_LIT>""" <EOL> z = traj . x * traj . y <EOL> traj . f_add_result ( '<STR_LIT:z>' , z = z , comment = '<STR_LIT>' ) <EOL> def main ( ) : <EOL> """<STR_LIT>""" <EOL> filename = os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> env = Environment ( trajectory = '<STR_LIT>' , <EOL> filename = filename , <EOL> file_title = '<STR_LIT>' , <EOL> log_stdout = True , <EOL> comment = '<STR_LIT>' , <EOL> multiproc = True , <EOL> freeze_input = True , <EOL> use_scoop = True , <EOL> wrap_mode = pypetconstants . WRAP_MODE_LOCAL , <EOL> overwrite_file = True ) <EOL> traj = env . trajectory <EOL> traj . f_add_parameter ( '<STR_LIT:x>' , <NUM_LIT:1.0> , comment = '<STR_LIT>' ) <EOL> traj . f_add_parameter ( '<STR_LIT:y>' , <NUM_LIT:1.0> , comment = '<STR_LIT>' ) <EOL> traj . f_explore ( cartesian_product ( { '<STR_LIT:x>' : [ float ( x ) for x in range ( <NUM_LIT:20> ) ] , <EOL> '<STR_LIT:y>' : [ float ( y ) for y in range ( <NUM_LIT:20> ) ] } ) ) <EOL> env . run ( multiply ) <EOL> assert traj . f_is_completed ( ) <EOL> env . disable_logging ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
