We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d931a1c + e776ea2 commit 2448ebfCopy full SHA for 2448ebf
1 file changed
autoarray/inversion/mesh/image_mesh/hilbert.py
@@ -12,6 +12,7 @@
12
from autoarray.structures.grids.irregular_2d import Grid2DIrregular
13
14
from autoarray import exc
15
+from autofit.non_linear.test_mode import is_test_mode
16
17
18
def gilbert2d(width, height):
@@ -330,7 +331,7 @@ def check_mesh_pixels_per_image_pixels(
330
331
an exception is raised.
332
"""
333
- if os.environ.get("PYAUTOFIT_TEST_MODE") == "1":
334
+ if is_test_mode():
335
return
336
337
if image_mesh_min_mesh_pixels_per_pixel is not None:
@@ -397,7 +398,7 @@ def check_adapt_background_pixels(
397
398
399
400
401
402
403
404
if image_mesh_adapt_background_percent_threshold is not None:
0 commit comments