4 from itertools import product
7 def main(command, arg_dict, outfile, remember_file='remember_grid_sweep.RDS'):
8 remember = pyRemembeR.remember.Remember()
9 remember.set_file(remember_file)
10 remember[outfile] = arg_dict
15 for i,p in enumerate(arg_dict.items()):
19 command = command + f" --{k} {{{i}}} "
21 args_list = product(*values)
23 with open(outfile,'w') as of:
24 for args in args_list:
25 of.write(command.format(*args) + '\n')
27 if __name__ == '__main__':