Skip to content

Commit 8ab428f

Browse files
authored
Merge pull request #260 from Jammy2211/feature/delaunay_primitive
Feature/delaunay primitive
2 parents 75d121f + 37092eb commit 8ab428f

7 files changed

Lines changed: 6 additions & 12 deletions

File tree

autogalaxy/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
from autoarray.structures.grids.irregular_2d import Grid2DIrregular # noqa
4545
from autoarray.operators.over_sampling.over_sampler import OverSampler # noqa
4646
from autoarray.structures.mesh.rectangular_2d import Mesh2DRectangular # noqa
47-
from autoarray.structures.mesh.voronoi_2d import Mesh2DVoronoi # noqa
4847
from autoarray.structures.mesh.delaunay_2d import Mesh2DDelaunay # noqa
4948
from autoarray.structures.vectors.uniform import VectorYX2D # noqa
5049
from autoarray.structures.vectors.irregular import VectorYX2DIrregular # noqa

autogalaxy/config/priors/mesh/voronoi.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

autogalaxy/galaxy/to_inversion.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,15 @@ def mapper_from(
471471
source_plane_mesh_grid=source_plane_mesh_grid,
472472
image_plane_mesh_grid=image_plane_mesh_grid,
473473
adapt_data=adapt_galaxy_image,
474+
preloads=self.preloads,
474475
xp=self._xp,
475476
)
476477

477478
return mapper_from(
478-
mapper_grids=mapper_grids, regularization=regularization, xp=self._xp
479+
mapper_grids=mapper_grids,
480+
regularization=regularization,
481+
preloads=self.preloads,
482+
xp=self._xp,
479483
)
480484

481485
@cached_property

autogalaxy/plot/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
PatchOverlay,
3131
InterpolatedReconstruction,
3232
DelaunayDrawer,
33-
VoronoiDrawer,
3433
OriginScatter,
3534
MaskScatter,
3635
BorderScatter,

autogalaxy/plot/mat_plot/two_d.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def __init__(
3131
patch_overlay: Optional[aplt.PatchOverlay] = None,
3232
interpolated_reconstruction: Optional[aplt.InterpolatedReconstruction] = None,
3333
delaunay_drawer: Optional[aplt.DelaunayDrawer] = None,
34-
voronoi_drawer: Optional[aplt.VoronoiDrawer] = None,
3534
origin_scatter: Optional[aplt.OriginScatter] = None,
3635
mask_scatter: Optional[aplt.MaskScatter] = None,
3736
border_scatter: Optional[aplt.BorderScatter] = None,
@@ -123,9 +122,6 @@ def __init__(
123122
Plots a `VectorField` object using the matplotlib function `plt.quiver`.
124123
patch_overlay
125124
Overlays matplotlib `patches.Patch` objects over the figure, such as an `Ellipse`.
126-
voronoi_drawer
127-
Interpolations the reconstruction of a `Mapper` object from its irregular grid (e.g. Delaunay, Voronoi) to a
128-
uniform 2D array and plots it via `plt.imshow()`.
129125
delaunay_drawer
130126
Draws a colored Delaunay mesh of pixels using `plt.tripcolor`.
131127
voronoi_drawer
@@ -212,7 +208,6 @@ def __init__(
212208
grid_plot=grid_plot,
213209
interpolated_reconstruction=interpolated_reconstruction,
214210
delaunay_drawer=delaunay_drawer,
215-
voronoi_drawer=voronoi_drawer,
216211
use_log10=use_log10,
217212
quick_update=quick_update,
218213
)

test_autogalaxy/config/general.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ output:
3434
model_results_decimal_places: 3
3535
remove_files: false
3636
samples_to_csv: false
37-
pixelization:
38-
voronoi_nn_max_interpolation_neighbors: 300
3937
structures:
4038
native_binned_only: false # If True, data structures are only stored in their native and binned format. This is used to reduce memory usage in autocti.
4139
test:

test_autogalaxy/galaxy/test_galaxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def test__output_to_and_load_from_json():
638638
light=ag.lp.Sersic(intensity=1.0),
639639
mass=ag.mp.Isothermal(einstein_radius=1.0),
640640
pixelization=ag.Pixelization(
641-
mesh=ag.mesh.Voronoi(),
641+
mesh=ag.mesh.Delaunay(),
642642
regularization=ag.reg.Constant(),
643643
),
644644
)

0 commit comments

Comments
 (0)