stanbkt.utils.get_stan_model_cache_dir#

stanbkt.utils.get_stan_model_cache_dir(stan_file, cpp_options=None, stanc_options=None)#

Return the cache directory for a compiled Stan executable.

Parameters:
  • stan_file (str | PathLike[str]) – Path to the entry-point Stan source file.

  • cpp_options (dict[str, Any] | None) – C++ compiler options forwarded to CmdStanPy.

  • stanc_options (dict[str, Any] | None) – Stan compiler options forwarded to CmdStanPy.

Returns:

Platform-specific cache directory for the executable associated with the given source and compile configuration.

Return type:

Path