Skip to content

Commit

Permalink
Merge pull request #329 from Jammy2211/feature/max_containing_size
Browse files Browse the repository at this point in the history
remove max containing size from solver
  • Loading branch information
rhayes777 authored Jan 17, 2025
2 parents 9bc05aa + 5c42d81 commit 8bd18ea
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion autolens/plot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
GridPlot,
VectorYXQuiver,
PatchOverlay,
DelaunayDrawer,
VoronoiDrawer,
OriginScatter,
MaskScatter,
Expand Down
12 changes: 0 additions & 12 deletions autolens/point/solver/shape_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,17 @@
if use_jax:
from autoarray.structures.triangles.coordinate_array.jax_coordinate_array import (
CoordinateArrayTriangles,
MAX_CONTAINING_SIZE,
)
else:
from autoarray.structures.triangles.coordinate_array.coordinate_array import (
CoordinateArrayTriangles,
)

MAX_CONTAINING_SIZE = None

except ImportError:
from autoarray.structures.triangles.coordinate_array.coordinate_array import (
CoordinateArrayTriangles,
)

MAX_CONTAINING_SIZE = None

from autoarray.structures.triangles.abstract import AbstractTriangles

from autogalaxy import OperateDeflections
Expand Down Expand Up @@ -76,7 +71,6 @@ def for_grid(
pixel_scale_precision: float,
magnification_threshold=0.1,
array_triangles_cls: Type[AbstractTriangles] = CoordinateArrayTriangles,
max_containing_size=MAX_CONTAINING_SIZE,
neighbor_degree: int = 1,
):
"""
Expand Down Expand Up @@ -124,7 +118,6 @@ def for_grid(
pixel_scale_precision=pixel_scale_precision,
magnification_threshold=magnification_threshold,
array_triangles_cls=array_triangles_cls,
max_containing_size=max_containing_size,
neighbor_degree=neighbor_degree,
)

Expand All @@ -139,7 +132,6 @@ def for_limits_and_scale(
pixel_scale_precision: float = 0.001,
magnification_threshold=0.1,
array_triangles_cls: Type[AbstractTriangles] = CoordinateArrayTriangles,
max_containing_size=MAX_CONTAINING_SIZE,
neighbor_degree: int = 1,
):
"""
Expand All @@ -163,9 +155,6 @@ def for_limits_and_scale(
array_triangles_cls
The class to use for the triangles. JAX is used implicitly if USE_JAX=1 and
jax is installed.
max_containing_size
Only applies to JAX. This is the maximum number of multiple images expected.
We need to know this in advance to allocate memory for the JAX array.
neighbor_degree
The number of times recursively add neighbors for the triangles that contain
Expand All @@ -179,7 +168,6 @@ def for_limits_and_scale(
x_min=x_min,
x_max=x_max,
scale=scale,
max_containing_size=max_containing_size,
)

return cls(
Expand Down

0 comments on commit 8bd18ea

Please sign in to comment.