Skip to content

Commit 5fa91ad

Browse files
Jammy2211Jammy2211
authored andcommitted
black
1 parent 10d09f4 commit 5fa91ad

5 files changed

Lines changed: 16 additions & 15 deletions

File tree

autogalaxy/abstract_fit.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@
1515

1616

1717
class AbstractFitInversion:
18-
def __init__(
19-
self,
20-
model_obj,
21-
settings_inversion: aa.SettingsInversion,
22-
xp=np
23-
):
18+
def __init__(self, model_obj, settings_inversion: aa.SettingsInversion, xp=np):
2419
"""
2520
An abstract fit object which fits to datasets (e.g. imaging, interferometer) inherit from.
2621
@@ -131,7 +126,9 @@ def linear_light_profile_intensity_dict(
131126

132127
for i, light_profile in enumerate(linear_obj_func.light_profile_list):
133128
if self.use_jax:
134-
linear_light_profile_intensity_dict[light_profile] = reconstruction[i]
129+
linear_light_profile_intensity_dict[light_profile] = reconstruction[
130+
i
131+
]
135132
else:
136133
linear_light_profile_intensity_dict[light_profile] = float(
137134
reconstruction[i]

autogalaxy/galaxy/galaxies.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ def image_2d_from(
119119
)
120120

121121
def galaxy_image_2d_dict_from(
122-
self, grid: aa.type.Grid2DLike, xp=np, operated_only: Optional[bool] = None,
122+
self,
123+
grid: aa.type.Grid2DLike,
124+
xp=np,
125+
operated_only: Optional[bool] = None,
123126
) -> {Galaxy: np.ndarray}:
124127
"""
125128
Returns a dictionary associating every `Galaxy` object with its corresponding 2D image, using the instance

autogalaxy/imaging/fit_imaging.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(
7878
self=self,
7979
model_obj=self.galaxies,
8080
settings_inversion=settings_inversion,
81-
xp=xp
81+
xp=xp,
8282
)
8383

8484
self.adapt_images = adapt_images
@@ -184,8 +184,7 @@ def galaxy_image_dict(self) -> Dict[Galaxy, np.ndarray]:
184184
"""
185185

186186
galaxy_image_2d_dict = self.galaxies.galaxy_image_2d_dict_from(
187-
grid=self.grids.lp,
188-
xp=self._xp
187+
grid=self.grids.lp, xp=self._xp
189188
)
190189

191190
galaxy_linear_obj_image_dict = self.galaxy_linear_obj_data_dict_from(
@@ -213,7 +212,7 @@ def galaxy_model_image_dict(self) -> Dict[Galaxy, np.ndarray]:
213212
grid=self.grids.lp,
214213
psf=self.dataset.psf,
215214
blurring_grid=self.grids.blurring,
216-
xp=self._xp
215+
xp=self._xp,
217216
)
218217

219218
galaxy_linear_obj_image_dict = self.galaxy_linear_obj_data_dict_from(

autogalaxy/interferometer/fit_interferometer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(
7272
self=self,
7373
model_obj=self.galaxies,
7474
settings_inversion=settings_inversion,
75-
xp=xp
75+
xp=xp,
7676
)
7777

7878
self.adapt_images = adapt_images
@@ -161,7 +161,9 @@ def galaxy_image_dict(self) -> Dict[Galaxy, np.ndarray]:
161161
For modeling, this dictionary is used to set up the `adapt_images` that adapt certain pixelizations to the
162162
data being fitted.
163163
"""
164-
galaxy_image_dict = self.galaxies.galaxy_image_2d_dict_from(grid=self.grids.lp, xp=self._xp)
164+
galaxy_image_dict = self.galaxies.galaxy_image_2d_dict_from(
165+
grid=self.grids.lp, xp=self._xp
166+
)
165167

166168
galaxy_linear_obj_image_dict = self.galaxy_linear_obj_data_dict_from(
167169
use_operated=False

autogalaxy/operate/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def galaxy_blurred_image_2d_dict_from(
414414
blurred_image_2d = psf.convolved_image_from(
415415
image=image_2d_not_operated,
416416
blurring_image=blurring_image_2d_not_operated,
417-
xp=xp
417+
xp=xp,
418418
)
419419

420420
image_2d_operated = galaxy_image_2d_operated_dict[galaxy_key]

0 commit comments

Comments
 (0)