File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import logging
2+
13from autoarray import exc
24
35import autofit as af
810from autolens .lens import tracer_util
911from autolens import exc
1012
13+ logger = logging .getLogger (__name__ )
1114
1215class VisualizerImaging (af .Visualizer ):
1316 @staticmethod
@@ -136,6 +139,9 @@ def visualize(
136139 try :
137140 fit .inversion .reconstruction
138141 except exc .InversionException :
142+ logger (
143+ ag .exc .invalid_linear_algebra_for_visualization_message ()
144+ )
139145 return
140146
141147 zoom = ag .Zoom2D (mask = fit .mask )
Original file line number Diff line number Diff line change 1+ import logging
2+
13import autofit as af
24import autogalaxy as ag
35
79from autolens .lens import tracer_util
810from autogalaxy import exc
911
12+ logger = logging .getLogger (__name__ )
13+
1014
1115class VisualizerInterferometer (af .Visualizer ):
1216 @staticmethod
@@ -106,7 +110,10 @@ def visualize(
106110 quick_update = quick_update ,
107111 )
108112 except exc .InversionException :
109- pass
113+ logger (
114+ ag .exc .invalid_linear_algebra_for_visualization_message ()
115+ )
116+ return
110117
111118 if quick_update :
112119 return
You can’t perform that action at this time.
0 commit comments