Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matplotlib.use(Agg) first #136

Merged
merged 1 commit into from
Mar 11, 2019
Merged

Conversation

relf
Copy link
Member

@relf relf commented Mar 11, 2019

When using testflo, matplotlib plotting should be disable. (see #135)
To do that matplotlib.use('Agg') has to be called as soon as matplotlib is imported.
This PR fixes that for moe and mfk.
However, I had to add the following line :
matplotlib.pyplot.switch_backend('Agg')
at the beginning of smt/problems/tests/test_problem_examples.py to make it work on linux.
Weirdly on windows, the problem does not show up even without that PR.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 77.37% when pulling 04b3f8f on relf:fix-testflo-matplotlib into 9b61f27 on SMTorg:master.

@AppVeyorBot
Copy link

Build SMT 0.2.505 completed (commit aa521546ef by @relf)

@bouhlelma bouhlelma merged commit ba5b444 into SMTorg:master Mar 11, 2019
@relf relf deleted the fix-testflo-matplotlib branch April 14, 2019 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants