Automatically create folders when writing to file
When writing fit results to yaml
files using to_yaml_file
an automatic path is used. It should be checked if this path exists or create it otherwise, right now the code breaks if the destination path doesn't exist.
In the backend this uses the write_config
utililty defined here, so it should probably be solved therein.