io - Read/write mesh or data files
-
write
(mesh: Mesh, name: str, type=None, **opts)[source] Write a mesh to a file, guessing its file type
-
cache
(filename: str, create: Optional[callable] = None, name=None, storage=None, **opts) Mesh [source] Small cachefile system, it allows to dump objects to files and to get them when needed.
It’s particularly useful when working with other processes. The cached files are reloaded only when the cache files are newer than the memory cache data.
If specified, create() is called to provide the data, in case it doesn’t exist in memory neither as file. If specified, name is the cache name used to index the file it defaults to the
filename
. If specified, storage is the dictionary used to storage cache data, defaults to io.caches.
-
caches
dict containing the data objects, associated to their filename.
{'filename': (read_time, data_loaded)}