Matplotlib lockerror
I've been doing some TBS style runs (hundreds of short runs) to try to stress test the code.
I found about 10% of jobs failed with the following trace. It looks like there are too many things trying to access the matplotilb installation.
Any thoughts?
@paul-lasky @gregory.ashton @moritz.huebner?
File "/home/colm.talbot/virtualenvironents/py3.4/lib/python3.4/site-packages/matplotlib/texmanager.py",
line 406, in with Locked(self.texcache):
File "/home/colm.talbot/virtualenvironents/py3.4/lib/python3.4/site-packages/matplotlib/cbook.py",
raise self.TimeoutError(err_str)
matplotlib.cbook.TimeoutError: LOCKERROR: matplotlib is trying to acquire the lock
'/home/colm.talbot/.cache/matplotlib/tex.cache/.matplotlib_lock-*' and has failed.
This maybe due to any other process holding this lock.
If you are sure no other matplotlib process is running try removing these folders and trying again.
This seems to be breaking when dynesty
tries to make the trace plots.
It does this before saving the h5 file, so this means that the result is just thrown away.
Can we remove https://git.ligo.org/Monash/tupak/blob/master/tupak/sampler.py#L330?