Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autofit/mapper/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class LinearOperator(ABC):
"""Implements the functionality of a linear operator.
r"""Implements the functionality of a linear operator.

All linear operators can be expressed as a tensor/matrix
However for some it there may be more efficient representations
Expand Down
2 changes: 1 addition & 1 deletion autofit/mapper/prior/gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(
sigma: float,
id_: Optional[int] = None,
):
"""
r"""
A Gaussian prior defined by a normal distribution.

The prior transforms a unit interval input `u` in [0, 1] into a physical parameter `p` via
Expand Down
2 changes: 1 addition & 1 deletion autofit/mapper/prior/log_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(
sigma: float,
id_: Optional[int] = None,
):
"""
r"""
A prior for a variable whose logarithm is gaussian distributed. Work in natural log.

The conversion of an input unit value, ``u``, to a physical value, ``p``, via the prior is as follows:
Expand Down
2 changes: 1 addition & 1 deletion autofit/mapper/prior/truncated_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(
upper_limit: float = float("inf"),
id_: Optional[int] = None,
):
"""
r"""
A Gaussian prior defined by a normal distribution with optional truncation limits.

This prior represents a Gaussian (normal) distribution with mean `mean`
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,9 @@ dev = ["pytest", "black"]
"autofit.config" = ["*"]

[tool.pytest.ini_options]
testpaths = ["test_autofit"]
testpaths = ["test_autofit"]
filterwarnings = [
"ignore:cuda_plugin_extension:UserWarning",
"ignore::DeprecationWarning:jax",
"ignore:relationship .* will copy column:sqlalchemy.exc.SAWarning",
]
4 changes: 2 additions & 2 deletions test_autofit/graphical/test_combined_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_make_result():
assert child_result.model == model


class TestAnalysis(af.Analysis):
class MockAnalysis(af.Analysis):
def __init__(self):
super().__init__()
calls = []
Expand Down Expand Up @@ -81,7 +81,7 @@ def save_results(self, paths: SubDirectoryPaths, result):

@pytest.fixture
def analysis():
return TestAnalysis()
return MockAnalysis()


@pytest.fixture
Expand Down
Loading