bebi103.stan.clean_cmdstan
- bebi103.stan.clean_cmdstan(path='./', prefix=None, delete_sampling_output=False)
Remove all .hpp, .o, .d, and executable files resulting from compilation of Stan models using CmdStanPy.
- Parameters
path (str, default './') – Path to directory containing files to delete.
prefix (str, default None) – String of prefix of model name. This is the name of the Stan file from which the model was generated is <prefix>.stan. If None, then all .stan files are used. Files <prefix>.hpp, <prefix>.o, <prefix>.d, and the executable file <prefix> are deleted.
delete_sampling_output (bool, default False) – If True, also delete all output generated by CmdStan.
Notes
If your files are stored in a temporary directory, as for the CmdStanPy default, use cmdstanpy.cleanup_tmpdir() instead.