Plotting fails when using file transfer
I'm getting errors like the following when using the file transfer on condor. It looks like someone wrote the solution in the error message, which is nice. I'll try to find time to give that a go.
10:31 bilby_pipe INFO : Plotting 1d posteriors
Traceback (most recent call last):
File "/home/colm.talbot/.conda/envs/bilby-devel/lib/python3.7/site-packages/bilby/core/result.py", line 1260, in _safe_outdir_creation
utils.check_directory_exists_and_if_not_mkdir(outdir)
File "/home/colm.talbot/.conda/envs/bilby-devel/lib/python3.7/site-packages/bilby/core/utils.py", line 541, in check_directory_exists_and_if_not_mkdir
os.makedirs(directory)
File "/home/colm.talbot/.conda/envs/bilby-devel/lib/python3.7/os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/home/colm.talbot/.conda/envs/bilby-devel/lib/python3.7/os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/home/colm.talbot/.conda/envs/bilby-devel/lib/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/lib/condor/execute/dir_826707'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/colm.talbot/.conda/envs/bilby-devel/bin/bilby_pipe_plot", line 10, in <module>
sys.exit(main())
File "/home/colm.talbot/.conda/envs/bilby-devel/lib/python3.7/site-packages/bilby_pipe/plot.py", line 50, in main
result.plot_marginals(priors=True)
File "/home/colm.talbot/.conda/envs/bilby-devel/lib/python3.7/site-packages/bilby/core/result.py", line 781, in plot_marginals
outdir = self._safe_outdir_creation(outdir, self.plot_marginals)
File "/home/colm.talbot/.conda/envs/bilby-devel/lib/python3.7/site-packages/bilby/core/result.py", line 1265, in _safe_outdir_creation
"keyword argument, e.g. " + caller_func.__name__ + "(outdir='.')")
bilby.core.result.FileMovedError: Can not write in the out directory.
Did you move the here file from another system?
Try calling plot_marginals with the 'outdir' keyword argument, e.g. plot_marginals(outdir='.')