I added two methods to options and called them in vbmc.__init__() so that VBMC uses all options (basic + advanced) and all the options are validated for typos.
load_options_file(options_path: str, evaluation_parameters: Optional[dict] = None) Load options from an ini file and evaluate them using the specified evaluation_parameters.
validate_option_names(options_paths: list) Check that ini files specified by the list of optionspaths contain the option names from this options object at least once. (Note that this method checks not if there are option names in files that are not in the object.)_
Furthermore, I refactored the class to use a helper method _read_config_file(self, options_path: str) so that we do not have to implement the loading of the options in two methods and removed two options from pyvbmc that are according to the MATLAB version experimental and have been implemented by accident. (The check works, you should have seen my face, after three tests failed 🤦 😂) Finally, I added the custom CSS of Sphinx that is already used in gpyreg.
I added two methods to options and called them in
vbmc.__init__()
so that VBMC uses all options (basic + advanced) and all the options are validated for typos.load_options_file(options_path: str, evaluation_parameters: Optional[dict] = None)
Load options from an ini file and evaluate them using the specified evaluation_parameters.validate_option_names(options_paths: list)
Check that ini files specified by the list of optionspaths contain the option names from this options object at least once. (Note that this method checks not if there are option names in files that are not in the object.)_Furthermore, I refactored the class to use a helper method
_read_config_file(self, options_path: str)
so that we do not have to implement the loading of the options in two methods and removed two options from pyvbmc that are according to the MATLAB version experimental and have been implemented by accident. (The check works, you should have seen my face, after three tests failed 🤦 😂) Finally, I added the custom CSS of Sphinx that is already used in gpyreg.