Example #1
0
def test_get_ion_density_OML_without_return_fit(characteristic):
    r"""Test ion density without returning the fit value"""

    density = langmuir.get_ion_density_OML(
        characteristic, 5000000 * u.m ** 2, "p+", return_fit=False
    )
    assert np.isclose(density.value, 385344135.12064785)
Example #2
0
def test_get_ion_density_OML_without_return_fit():
    r"""Test ion density without returning the fit value"""

    char = characteristic()
    density = langmuir.get_ion_density_OML(char, 5000000*u.m**2,
                                           1*u.u, return_fit=False)
    assert np.isclose(density.value, 383949768.0764418)