docs: update documentation files and fix linting issues
This commit is contained in:
@@ -26,16 +26,21 @@ class TestScreeningAPI:
|
||||
sc = ScreeningCorrection(ff)
|
||||
assert "Screening" in repr(sc)
|
||||
|
||||
|
||||
class TestScreeningProperties:
|
||||
@pytest.mark.property
|
||||
@pytest.mark.parametrize("W", [
|
||||
[2.0],
|
||||
np.linspace(1.02, 3.0, 20),
|
||||
])
|
||||
@pytest.mark.parametrize(
|
||||
"W",
|
||||
[
|
||||
[2.0],
|
||||
np.linspace(1.02, 3.0, 20),
|
||||
],
|
||||
)
|
||||
def test_positive(self, W):
|
||||
ff = FermiFunction(Z=40, A=95)
|
||||
sc = ScreeningCorrection(ff)
|
||||
from tests.common.test_property_tests import _test_positive_values
|
||||
|
||||
_test_positive_values(sc, W, component_name="ScreeningCorrection")
|
||||
|
||||
@pytest.mark.quality
|
||||
@@ -45,4 +50,5 @@ class TestScreeningProperties:
|
||||
sc = ScreeningCorrection(ff)
|
||||
W = np.linspace(1.1, 3.0, n)
|
||||
from tests.common.test_property_tests import _test_output_shape_preserved
|
||||
|
||||
_test_output_shape_preserved(sc, W, component_name="ScreeningCorrection")
|
||||
|
||||
Reference in New Issue
Block a user