Open gakkiismywife opened 1 year ago
mkdir 'movement' in 'environment/frontend_server/storage/base_the_ville_isabella_maria_klaus' or 'environment/frontend_server/storage/base_the_ville_n25'
try to add the code ' movementFolder = f"{sim_folder}/movement" if not os.path.exists(movementFolder): os.mkdir(movementFolder) ' before ' curr_move_file = f"{sim_folder}/movement/{self.step}.json" with open(curr_move_file, "w") as outfile: outfile.write(json.dumps(movements, indent=2)) '
try to add the code ' movementFolder = f"{sim_folder}/movement" if not os.path.exists(movementFolder): os.mkdir(movementFolder) ' before ' curr_move_file = f"{sim_folder}/movement/{self.step}.json" with open(curr_move_file, "w") as outfile: outfile.write(json.dumps(movements, indent=2)) '
where should it to be added?thanks
https://github.com/joonspk-research/generative_agents/pull/19 @Huayu-Qin @gakkiismywife
when the process running the error output