From ca8dc57af7d1ddc04e113cd32fe9a7b4407a0fa7 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Mon, 26 Feb 2024 08:59:15 +0000 Subject: [PATCH] fix interferometer plot --- autoarray/inversion/plot/inversion_plotters.py | 13 ++++++++----- autoarray/numba_util.py | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/autoarray/inversion/plot/inversion_plotters.py b/autoarray/inversion/plot/inversion_plotters.py index 3429dbfa..f0765b41 100644 --- a/autoarray/inversion/plot/inversion_plotters.py +++ b/autoarray/inversion/plot/inversion_plotters.py @@ -279,11 +279,14 @@ def subplot_of_mapper( self.mat_plot_2d.use_log10 = True self.mat_plot_2d.contour = False - self.mat_plot_2d.plot_array( - array=self.inversion.data, - visuals_2d=self.get_visuals_2d_for_data(), - auto_labels=AutoLabels(title=f" Data"), - ) + try: + self.mat_plot_2d.plot_array( + array=self.inversion.data, + visuals_2d=self.get_visuals_2d_for_data(), + auto_labels=AutoLabels(title=f" Data"), + ) + except AttributeError: + pass self.figures_2d_of_pixelization( pixelization_index=mapper_index, reconstructed_image=True diff --git a/autoarray/numba_util.py b/autoarray/numba_util.py index fc16e451..db34f3e1 100644 --- a/autoarray/numba_util.py +++ b/autoarray/numba_util.py @@ -44,6 +44,7 @@ f"or because it is not installed.\n\n. " f"This will lead to slow performance.\n\n. " f"Install numba as described at the following webpage for improved performance. \n" + f"https://pyautolens.readthedocs.io/en/latest/installation/numba.html \n" f"********************************************************************************" )