Skip to content

Commit 8bd18ea

Browse files
authored
Merge pull request #329 from Jammy2211/feature/max_containing_size
remove max containing size from solver
2 parents 9bc05aa + 5c42d81 commit 8bd18ea

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

autolens/plot/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
GridPlot,
2929
VectorYXQuiver,
3030
PatchOverlay,
31-
DelaunayDrawer,
3231
VoronoiDrawer,
3332
OriginScatter,
3433
MaskScatter,

autolens/point/solver/shape_solver.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,17 @@
1212
if use_jax:
1313
from autoarray.structures.triangles.coordinate_array.jax_coordinate_array import (
1414
CoordinateArrayTriangles,
15-
MAX_CONTAINING_SIZE,
1615
)
1716
else:
1817
from autoarray.structures.triangles.coordinate_array.coordinate_array import (
1918
CoordinateArrayTriangles,
2019
)
2120

22-
MAX_CONTAINING_SIZE = None
23-
2421
except ImportError:
2522
from autoarray.structures.triangles.coordinate_array.coordinate_array import (
2623
CoordinateArrayTriangles,
2724
)
2825

29-
MAX_CONTAINING_SIZE = None
30-
3126
from autoarray.structures.triangles.abstract import AbstractTriangles
3227

3328
from autogalaxy import OperateDeflections
@@ -76,7 +71,6 @@ def for_grid(
7671
pixel_scale_precision: float,
7772
magnification_threshold=0.1,
7873
array_triangles_cls: Type[AbstractTriangles] = CoordinateArrayTriangles,
79-
max_containing_size=MAX_CONTAINING_SIZE,
8074
neighbor_degree: int = 1,
8175
):
8276
"""
@@ -124,7 +118,6 @@ def for_grid(
124118
pixel_scale_precision=pixel_scale_precision,
125119
magnification_threshold=magnification_threshold,
126120
array_triangles_cls=array_triangles_cls,
127-
max_containing_size=max_containing_size,
128121
neighbor_degree=neighbor_degree,
129122
)
130123

@@ -139,7 +132,6 @@ def for_limits_and_scale(
139132
pixel_scale_precision: float = 0.001,
140133
magnification_threshold=0.1,
141134
array_triangles_cls: Type[AbstractTriangles] = CoordinateArrayTriangles,
142-
max_containing_size=MAX_CONTAINING_SIZE,
143135
neighbor_degree: int = 1,
144136
):
145137
"""
@@ -163,9 +155,6 @@ def for_limits_and_scale(
163155
array_triangles_cls
164156
The class to use for the triangles. JAX is used implicitly if USE_JAX=1 and
165157
jax is installed.
166-
max_containing_size
167-
Only applies to JAX. This is the maximum number of multiple images expected.
168-
We need to know this in advance to allocate memory for the JAX array.
169158
neighbor_degree
170159
The number of times recursively add neighbors for the triangles that contain
171160
@@ -179,7 +168,6 @@ def for_limits_and_scale(
179168
x_min=x_min,
180169
x_max=x_max,
181170
scale=scale,
182-
max_containing_size=max_containing_size,
183171
)
184172

185173
return cls(

0 commit comments

Comments
 (0)