probcomp / crosscat

A domain-general, Bayesian method for analyzing high-dimensional data tables
http://probcomp.csail.mit.edu/crosscat/
Apache License 2.0
322 stars 42 forks source link

Prevent test suite from generating matplotlib figures using X11-based backend #118

Open fsaad opened 7 years ago

fsaad commented 7 years ago

Running the test suite using ./check.sh -s -vvv causes matplotlib figures to pop up, which need to be closed manually for the test to proceed.

axch commented 7 years ago

I don't think the popping up is a function of the backend so much as something or other calling show() instead of writing figures to files. However, 'agg' is a good idea anyway, because it allows running tests that write figures to files even if the machine has no display connected.

fsaad commented 7 years ago

Sounds right, although with the agg backend show() has no blocking effect as far as I know.

axch commented 7 years ago

You may be right. I actually don't remember ever drawing a figure in agg and trying to show() it.