Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammy2211 committed Mar 24, 2024
1 parent 6e6c46e commit e68d2f9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions autolens/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
from autoarray.structures.visibilities import VisibilitiesNoiseMap

from autogalaxy import cosmology as cosmo
from autogalaxy.analysis.adapt_images import AdaptImages
from autogalaxy.analysis.adapt_images import AdaptImageMaker
from autogalaxy.analysis.adapt_images.adapt_images import AdaptImages
from autogalaxy.analysis.adapt_images.adapt_image_maker import AdaptImageMaker
from autogalaxy.gui.clicker import Clicker
from autogalaxy.gui.scribbler import Scribbler
from autogalaxy.galaxy.galaxy import Galaxy
Expand Down
4 changes: 2 additions & 2 deletions autolens/analysis/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def __init__(
positions_likelihood: Optional[
Union[PositionsLHResample, PositionsLHPenalty]
] = None,
adapt_images: Optional[ag.AdaptImages] = None,
adapt_image_maker: Optional[ag.AdaptImageMaker] = None,
cosmology: ag.cosmo.LensingCosmology = ag.cosmo.Planck15(),
settings_inversion: aa.SettingsInversion = None,
raise_inversion_positions_likelihood_exception: bool = True,
Expand Down Expand Up @@ -185,7 +185,7 @@ def __init__(

super().__init__(
dataset=dataset,
adapt_images=adapt_images,
adapt_image_maker=adapt_image_maker,
cosmology=cosmology,
settings_inversion=settings_inversion,
)
Expand Down
12 changes: 7 additions & 5 deletions autolens/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,20 @@ def make_adapt_images_7x7():


def make_analysis_imaging_7x7():
return al.AnalysisImaging(
analysis = al.AnalysisImaging(
dataset=make_masked_imaging_7x7(),
settings_inversion=aa.SettingsInversion(use_w_tilde=False),
adapt_images=make_adapt_images_7x7(),
)
analysis._adapt_images = make_adapt_images_7x7()
return analysis


def make_analysis_interferometer_7():
return al.AnalysisInterferometer(
dataset=make_interferometer_7(), adapt_images=make_adapt_images_7x7()
analysis = al.AnalysisInterferometer(
dataset=make_interferometer_7(),
)

analysis._adapt_images = make_adapt_images_7x7()
return analysis

def make_analysis_point_x2():
return al.AnalysisPoint(
Expand Down
4 changes: 2 additions & 2 deletions autolens/interferometer/model/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(
positions_likelihood: Optional[
Union[PositionsLHResample, PositionsLHPenalty]
] = None,
adapt_images: Optional[ag.AdaptImages] = None,
adapt_image_maker: Optional[ag.AdaptImageMaker] = None,
cosmology: ag.cosmo.LensingCosmology = ag.cosmo.Planck15(),
settings_inversion: aa.SettingsInversion = None,
raise_inversion_positions_likelihood_exception: bool = True,
Expand Down Expand Up @@ -78,7 +78,7 @@ def __init__(
super().__init__(
dataset=dataset,
positions_likelihood=positions_likelihood,
adapt_images=adapt_images,
adapt_image_maker=adapt_image_maker,
cosmology=cosmology,
settings_inversion=settings_inversion,
raise_inversion_positions_likelihood_exception=raise_inversion_positions_likelihood_exception,
Expand Down
2 changes: 1 addition & 1 deletion autolens/interferometer/model/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import autoarray as aa
import autogalaxy as ag

from autogalaxy.analysis.adapt_images import AdaptImages
from autogalaxy.analysis.adapt_images.adapt_images import AdaptImages
from autolens.lens.tracer import Tracer
from autolens.interferometer.fit_interferometer import FitInterferometer
from autolens.analysis.result import ResultDataset
Expand Down

0 comments on commit e68d2f9

Please sign in to comment.