hmf.core.cache.to_disk_cache¶ hmf.core.cache.to_disk_cache(value: DiskCache | bool | str | PathLike[str] | None) → DiskCache | None[source]¶ Convert the disk_cache field of a stage. None or False disables the cache, True uses the default directory, and a path uses that directory.