Skip to content

Commit

Permalink
preload fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammy2211 committed Nov 13, 2024
1 parent 0482967 commit faaa350
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions autoarray/dataset/imaging/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def apply_noise_scaling(self, mask: Mask2D, noise_value: float = 1e8) -> "Imagin
noise_covariance_matrix=self.noise_covariance_matrix,
over_sampling=self.over_sampling,
pad_for_convolver=False,
check_noise_map=False
check_noise_map=False,
)

logger.info(
Expand Down Expand Up @@ -434,7 +434,7 @@ def apply_over_sampling(
psf=self.psf,
over_sampling=over_sampling,
pad_for_convolver=False,
check_noise_map=False
check_noise_map=False,
)

def output_to_fits(
Expand Down
1 change: 0 additions & 1 deletion autoarray/plot/abstract_plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def __init__(

self.subplot_figsize = None


def set_title(self, label):
if self.mat_plot_1d is not None:
self.mat_plot_1d.title.manual_label = label
Expand Down
1 change: 1 addition & 0 deletions autoarray/plot/wrap/base/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,5 @@ def close(self):
"""
plt.close()
import gc

gc.collect()
3 changes: 3 additions & 0 deletions autoarray/preloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ def set_linear_func_inversion_dicts(self, fit_0, fit_1):
< 1e-8
):
should_preload = True
else:
should_preload = False
break

if should_preload:
self.linear_func_operated_mapping_matrix_dict = (
Expand Down

0 comments on commit faaa350

Please sign in to comment.