verbs.utils.cache_from_file#

cache_from_file(cache_file: str) Tuple[int, int, List[Tuple[bytes, Tuple[bytes, int, bytes, bytes]]], List[Tuple[bytes, bytes, bytes]]][source]#

Loads a cache from a JSON file and converts the loaded cache JSON data into compatible env compatible format

Parameters:

cache_file (str) – Cache JSON file.

Returns:

verbs.types.Cache – Cache converted to format for initialisation of a simulation environment.