releso.util.reward_helpers.write_json
- releso.util.reward_helpers.write_json(f_n: PathLike | str, obj_dict: Dict[str, Any])
Write the obj_dict to the given file (json encoded).
Can be used to store persistent variables between calls to the same script.
- Parameters:
f_n (Union[PathLike, str]) – Path to the file where the json encoded
stored. (data is to be)
obj_dict (Dict[str, Any]) – Data that is to be stored.