Skip to content

Commit

Permalink
fix preloading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammy2211 committed Mar 24, 2024
1 parent e68d2f9 commit 91710cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
7 changes: 1 addition & 6 deletions autolens/analysis/analysis.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import dill
import os
import json
import logging
import numpy as np
from os import path
from scipy.stats import norm
from typing import Dict, Optional, List, Union
from typing import Dict, Optional, Union

from autoconf import conf
from autoconf.dictable import to_dict, output_to_json
Expand All @@ -21,7 +17,6 @@
from autolens.analysis.preloads import Preloads
from autolens.analysis.positions import PositionsLHResample
from autolens.analysis.positions import PositionsLHPenalty
from autolens.analysis.visualizer import Visualizer
from autolens.lens.tracer import Tracer

from autolens.lens import tracer_util
Expand Down
12 changes: 2 additions & 10 deletions autolens/imaging/fit_imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,17 +373,9 @@ def refit_with_new_preloads(
return FitImaging(
dataset=self.dataset,
tracer=self.tracer,
sky=self.sky,
adapt_images=self.adapt_images,
settings_inversion=settings_inversion,
preloads=preloads,
run_time_dict=run_time_dict,
)

@property
def rff(self):
return np.divide(
self.residual_map,
self.data,
# out=np.zeros_like(self.residual_map.native),
# where=np.asarray(self.mask.native) == 0,
)
)

0 comments on commit 91710cf

Please sign in to comment.