Exemplo n.º 1
0
def test_Q_model_plotting(tmpdir):
    """
    Tests the plotting of the Q Model.
    """
    reset_matplotlib()

    tmpdir = str(tmpdir)

    Q_discrete.plot(WEIGHTS, RELAXATION_TIMES, f_min=1.0 / 100.0,
                    f_max=1.0 / 10.0)
    images_are_identical("discrete_Q_model", tmpdir)
Exemplo n.º 2
0
def test_Q_model_plotting(tmpdir):
    """
    Tests the plotting of the Q Model.
    """
    reset_matplotlib()

    tmpdir = str(tmpdir)

    Q_discrete.plot(WEIGHTS, RELAXATION_TIMES, f_min=1.0 / 100.0,
                    f_max=1.0 / 10.0)
    images_are_identical("discrete_Q_model", tmpdir)
Exemplo n.º 3
0
def test_Q_model_plotting(tmpdir):
    """
    Tests the plotting of the Q Model.
    """
    reset_matplotlib()

    tmpdir = str(tmpdir)

    weights = [2.50960201, 2.31899515, 0.19681762]
    relaxation_times = [1.73160984, 14.41562154, 16.70330157]
    Q_discrete.plot(weights, relaxation_times, f_min=1.0 / 100.0,
                    f_max=1.0 / 10.0)
    images_are_identical("discrete_Q_model", tmpdir)
Exemplo n.º 4
0
def setup_function(function):
    """
    Make sure matplotlib behaves the same on every machine.
    """
    reset_matplotlib()
Exemplo n.º 5
0
def setup_function(function):
    """
    Make sure matplotlib behaves the same on every machine.
    """
    reset_matplotlib()
Exemplo n.º 6
0
def setup_function(function):
    """
    Reset matplotlib.
    """
    reset_matplotlib()
Exemplo n.º 7
0
def setup_function(function):
    """
    Reset matplotlib.
    """
    reset_matplotlib()