Path error when generating monitor file
Summary
I get a "permission denied" error when trying to make a monitor file following the steps in the online doc, section 6.2.3 Generate a monitor file compatible with the CIF.
Steps to reproduce
Follow the tutorial in the online doc, section 6.2.3 Generate a monitor file compatible with the CIF
pycif version: 1adf8bde
python version: Python 3.7.6 | packaged by conda-forge | (default, Mar 23 2020, 23:03:20)
What is the current bug behavior?
If there is a non-existing path in the definition of file_monitor, generating the monitor file will result in an error (see below).
What is the expected correct behavior?
The path to the monitor file should be created if it does not exist (just as for the workdir setting).
Relevant logs and/or screenshots
Permission denied: b'/some_directory/monitor_reference.nc'
Possible fixes
Create the path before running the model, but that is undesired since error-prone.
See also