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-
2421except ImportError :
2522 from autoarray .structures .triangles .coordinate_array .coordinate_array import (
2623 CoordinateArrayTriangles ,
2724 )
2825
29- MAX_CONTAINING_SIZE = None
30-
3126from autoarray .structures .triangles .abstract import AbstractTriangles
3227
3328from 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