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
3 changes: 2 additions & 1 deletion autolens/analysis/analysis/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from autolens.analysis.positions import PositionsLH

from autolens import exc
from autofit.non_linear.test_mode import is_test_mode

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -104,7 +105,7 @@ def __init__(
raise_inversion_positions_likelihood_exception
)

if os.environ.get("PYAUTOFIT_TEST_MODE") == "1":
if is_test_mode():
self.raise_inversion_positions_likelihood_exception = False

# Can be deleted after relevent AutoFIT PR merged
Expand Down
3 changes: 2 additions & 1 deletion autolens/analysis/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
)
from autolens.lens.tracer import Tracer
from autolens.point.solver import PointSolver
from autofit.non_linear.test_mode import is_test_mode

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -303,7 +304,7 @@ def positions_likelihood_from(
The `PositionsLH` object used to apply a likelihood penalty or resample the positions.
"""

if os.environ.get("PYAUTOFIT_TEST_MODE") == "1":
if is_test_mode():
return

positions = (
Expand Down
3 changes: 2 additions & 1 deletion autolens/quantity/model/visualizer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os

import autofit as af
from autofit.non_linear.test_mode import is_test_mode

from autogalaxy.quantity.model.plotter import PlotterQuantity

Expand Down Expand Up @@ -39,7 +40,7 @@ def visualize(
via a non-linear search).
"""

if os.environ.get("PYAUTOFIT_TEST_MODE") == "1":
if is_test_mode():
return

fit = analysis.fit_quantity_for_instance(instance=instance)
Expand Down
Loading