Skip to content

Commit 5c38d02

Browse files
Jammy2211Jammy2211
authored andcommitted
working JAX LH Function
1 parent 7b031ea commit 5c38d02

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

autoarray/inversion/plot/inversion_plotters.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -376,14 +376,14 @@ def subplot_of_mapper(
376376
)
377377

378378
self.set_title(label="Regularization Weights (Unzoomed)")
379-
# try:
380-
self.figures_2d_of_pixelization(
381-
pixelization_index=mapper_index,
382-
regularization_weights=True,
383-
zoom_to_brightest=False,
384-
)
385-
# except IndexError:
386-
# pass
379+
try:
380+
self.figures_2d_of_pixelization(
381+
pixelization_index=mapper_index,
382+
regularization_weights=True,
383+
zoom_to_brightest=False,
384+
)
385+
except IndexError:
386+
pass
387387
self.set_title(label=None)
388388

389389
self.figures_2d_of_pixelization(

autoarray/inversion/plot/mapper_plotters.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,16 @@ def plot_source_from(
134134
auto_labels
135135
The labels given to the figure.
136136
"""
137-
try:
138-
self.mat_plot_2d.plot_mapper(
139-
mapper=self.mapper,
140-
visuals_2d=self.visuals_2d,
141-
auto_labels=auto_labels,
142-
pixel_values=pixel_values,
143-
zoom_to_brightest=zoom_to_brightest,
144-
interpolate_to_uniform=interpolate_to_uniform,
145-
)
146-
except ValueError:
147-
logger.info(
148-
"Could not plot the source-plane via the Mapper because of a ValueError."
149-
)
137+
# try:
138+
self.mat_plot_2d.plot_mapper(
139+
mapper=self.mapper,
140+
visuals_2d=self.visuals_2d,
141+
auto_labels=auto_labels,
142+
pixel_values=pixel_values,
143+
zoom_to_brightest=zoom_to_brightest,
144+
interpolate_to_uniform=interpolate_to_uniform,
145+
)
146+
# except ValueError:
147+
# logger.info(
148+
# "Could not plot the source-plane via the Mapper because of a ValueError."
149+
# )

0 commit comments

Comments
 (0)