Exemplo n.º 1
0
def test_energy_window_4(simple_eigenvals):  # pylint: disable=redefined-outer-name
    assert np.isclose(
        diff.calculate(
            *simple_eigenvals,
            symmetric_eigenval_weights=False,
            weight_eigenval=diff.energy_window(2.9, 4.1)
        ), 1 / 2
    )
Exemplo n.º 2
0
def test_energy_window_3(simple_eigenvals):  # pylint: disable=redefined-outer-name
    assert np.isclose(
        diff.calculate(*simple_eigenvals,
                       weight_eigenval=diff.energy_window(2.9, 4.1)), 1 / 3)