From b7dc46472bb344b6053ba8e434ff5a44875beebe Mon Sep 17 00:00:00 2001 From: Karan Desai Date: Tue, 24 May 2016 17:27:57 +0530 Subject: [PATCH] Remove semilog scale from plot due to ValueError. --- tardis/tests/tests_slow/test_w7.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tardis/tests/tests_slow/test_w7.py b/tardis/tests/tests_slow/test_w7.py index ad6ed323f4b..981e4e9995b 100644 --- a/tardis/tests/tests_slow/test_w7.py +++ b/tardis/tests/tests_slow/test_w7.py @@ -5,6 +5,7 @@ from numpy.testing import assert_allclose from astropy.tests.helper import assert_quantity_allclose +import tardis from tardis.atomic import AtomData from tardis.simulation.base import Simulation from tardis.model import Radial1DModel @@ -145,14 +146,13 @@ def plot_spectrum(self, passed): bbox={'facecolor': 'green', 'alpha': 0.5, 'pad': 10}) ldl_ax.plot(self.reference['wavelength'], deviation, "g+") else: - ldl_ax.set_yscale("log") ldl_ax.text(0.8, 0.8, 'failed', transform=ldl_ax.transAxes, bbox={'facecolor': 'red', 'alpha': 0.5, 'pad': 10}) ldl_ax.plot(self.reference['wavelength'], deviation, "rx") # Figure is saved in `tmp` directory right now, till a suitable way of # saving them is decided. - plt.savefig(os.path.join("/tmp", "spectrum_plot.png")) + plt.savefig(os.path.join(self.plot_savedir, "spectrum.png")) def test_montecarlo_properties(self): assert_quantity_allclose(