partition stringclasses 3
values | func_name stringlengths 1 134 | docstring stringlengths 1 46.9k | path stringlengths 4 223 | original_string stringlengths 75 104k | code stringlengths 75 104k | docstring_tokens listlengths 1 1.97k | repo stringlengths 7 55 | language stringclasses 1
value | url stringlengths 87 315 | code_tokens listlengths 19 28.4k | sha stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|
valid | EllipticalMassProfile.mass_within_circle_in_units | Integrate the mass profiles's convergence profile to compute the total mass within a circle of \
specified radius. This is centred on the mass profile.
The following units for mass can be specified and output:
- Dimensionless angular units (default) - 'angular'.
- Solar masses - 'angul... | autolens/model/profiles/mass_profiles.py | def mass_within_circle_in_units(self, radius: dim.Length, unit_mass='angular', kpc_per_arcsec=None,
critical_surface_density=None):
""" Integrate the mass profiles's convergence profile to compute the total mass within a circle of \
specified radius. This is centred o... | def mass_within_circle_in_units(self, radius: dim.Length, unit_mass='angular', kpc_per_arcsec=None,
critical_surface_density=None):
""" Integrate the mass profiles's convergence profile to compute the total mass within a circle of \
specified radius. This is centred o... | [
"Integrate",
"the",
"mass",
"profiles",
"s",
"convergence",
"profile",
"to",
"compute",
"the",
"total",
"mass",
"within",
"a",
"circle",
"of",
"\\",
"specified",
"radius",
".",
"This",
"is",
"centred",
"on",
"the",
"mass",
"profile",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L170-L199 | [
"def",
"mass_within_circle_in_units",
"(",
"self",
",",
"radius",
":",
"dim",
".",
"Length",
",",
"unit_mass",
"=",
"'angular'",
",",
"kpc_per_arcsec",
"=",
"None",
",",
"critical_surface_density",
"=",
"None",
")",
":",
"self",
".",
"check_units_of_radius_and_cri... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalMassProfile.mass_within_ellipse_in_units | Integrate the mass profiles's convergence profile to compute the total angular mass within an ellipse of \
specified major axis. This is centred on the mass profile.
The following units for mass can be specified and output:
- Dimensionless angular units (default) - 'angular'.
- Solar m... | autolens/model/profiles/mass_profiles.py | def mass_within_ellipse_in_units(self, major_axis, unit_mass='angular', kpc_per_arcsec=None,
critical_surface_density=None):
""" Integrate the mass profiles's convergence profile to compute the total angular mass within an ellipse of \
specified major axis. This is c... | def mass_within_ellipse_in_units(self, major_axis, unit_mass='angular', kpc_per_arcsec=None,
critical_surface_density=None):
""" Integrate the mass profiles's convergence profile to compute the total angular mass within an ellipse of \
specified major axis. This is c... | [
"Integrate",
"the",
"mass",
"profiles",
"s",
"convergence",
"profile",
"to",
"compute",
"the",
"total",
"angular",
"mass",
"within",
"an",
"ellipse",
"of",
"\\",
"specified",
"major",
"axis",
".",
"This",
"is",
"centred",
"on",
"the",
"mass",
"profile",
"."
... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L201-L231 | [
"def",
"mass_within_ellipse_in_units",
"(",
"self",
",",
"major_axis",
",",
"unit_mass",
"=",
"'angular'",
",",
"kpc_per_arcsec",
"=",
"None",
",",
"critical_surface_density",
"=",
"None",
")",
":",
"self",
".",
"check_units_of_radius_and_critical_surface_density",
"(",... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalMassProfile.mass_integral | Routine to integrate an elliptical light profiles - set axis ratio to 1 to compute the luminosity within a \
circle | autolens/model/profiles/mass_profiles.py | def mass_integral(self, x, axis_ratio):
"""Routine to integrate an elliptical light profiles - set axis ratio to 1 to compute the luminosity within a \
circle"""
r = x * axis_ratio
return 2 * np.pi * r * self.convergence_func(x) | def mass_integral(self, x, axis_ratio):
"""Routine to integrate an elliptical light profiles - set axis ratio to 1 to compute the luminosity within a \
circle"""
r = x * axis_ratio
return 2 * np.pi * r * self.convergence_func(x) | [
"Routine",
"to",
"integrate",
"an",
"elliptical",
"light",
"profiles",
"-",
"set",
"axis",
"ratio",
"to",
"1",
"to",
"compute",
"the",
"luminosity",
"within",
"a",
"\\",
"circle"
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L233-L237 | [
"def",
"mass_integral",
"(",
"self",
",",
"x",
",",
"axis_ratio",
")",
":",
"r",
"=",
"x",
"*",
"axis_ratio",
"return",
"2",
"*",
"np",
".",
"pi",
"*",
"r",
"*",
"self",
".",
"convergence_func",
"(",
"x",
")"
] | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalMassProfile.density_between_circular_annuli_in_angular_units | Calculate the mass between two circular annuli and compute the density by dividing by the annuli surface
area.
The value returned by the mass integral is dimensionless, therefore the density between annuli is returned in \
units of inverse radius squared. A conversion factor can be specified to... | autolens/model/profiles/mass_profiles.py | def density_between_circular_annuli_in_angular_units(self, inner_annuli_radius, outer_annuli_radius):
"""Calculate the mass between two circular annuli and compute the density by dividing by the annuli surface
area.
The value returned by the mass integral is dimensionless, therefore the density... | def density_between_circular_annuli_in_angular_units(self, inner_annuli_radius, outer_annuli_radius):
"""Calculate the mass between two circular annuli and compute the density by dividing by the annuli surface
area.
The value returned by the mass integral is dimensionless, therefore the density... | [
"Calculate",
"the",
"mass",
"between",
"two",
"circular",
"annuli",
"and",
"compute",
"the",
"density",
"by",
"dividing",
"by",
"the",
"annuli",
"surface",
"area",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L239-L257 | [
"def",
"density_between_circular_annuli_in_angular_units",
"(",
"self",
",",
"inner_annuli_radius",
",",
"outer_annuli_radius",
")",
":",
"annuli_area",
"=",
"(",
"np",
".",
"pi",
"*",
"outer_annuli_radius",
"**",
"2.0",
")",
"-",
"(",
"np",
".",
"pi",
"*",
"inn... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalMassProfile.average_convergence_of_1_radius_in_units | The radius a critical curve forms for this mass profile, e.g. where the mean convergence is equal to 1.0.
In case of ellipitical mass profiles, the 'average' critical curve is used, whereby the convergence is \
rescaled into a circle using the axis ratio.
This radius corresponds to the Eins... | autolens/model/profiles/mass_profiles.py | def average_convergence_of_1_radius_in_units(self, unit_length='arcsec', kpc_per_arcsec=None):
"""The radius a critical curve forms for this mass profile, e.g. where the mean convergence is equal to 1.0.
In case of ellipitical mass profiles, the 'average' critical curve is used, whereby the convergenc... | def average_convergence_of_1_radius_in_units(self, unit_length='arcsec', kpc_per_arcsec=None):
"""The radius a critical curve forms for this mass profile, e.g. where the mean convergence is equal to 1.0.
In case of ellipitical mass profiles, the 'average' critical curve is used, whereby the convergenc... | [
"The",
"radius",
"a",
"critical",
"curve",
"forms",
"for",
"this",
"mass",
"profile",
"e",
".",
"g",
".",
"where",
"the",
"mean",
"convergence",
"is",
"equal",
"to",
"1",
".",
"0",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L259-L275 | [
"def",
"average_convergence_of_1_radius_in_units",
"(",
"self",
",",
"unit_length",
"=",
"'arcsec'",
",",
"kpc_per_arcsec",
"=",
"None",
")",
":",
"def",
"func",
"(",
"radius",
")",
":",
"radius",
"=",
"dim",
".",
"Length",
"(",
"radius",
",",
"unit_length",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalCoredPowerLaw.einstein_radius_rescaled | Rescale the einstein radius by slope and axis_ratio, to reduce its degeneracy with other mass-profiles
parameters | autolens/model/profiles/mass_profiles.py | def einstein_radius_rescaled(self):
"""Rescale the einstein radius by slope and axis_ratio, to reduce its degeneracy with other mass-profiles
parameters"""
return ((3 - self.slope) / (1 + self.axis_ratio)) * self.einstein_radius ** (self.slope - 1) | def einstein_radius_rescaled(self):
"""Rescale the einstein radius by slope and axis_ratio, to reduce its degeneracy with other mass-profiles
parameters"""
return ((3 - self.slope) / (1 + self.axis_ratio)) * self.einstein_radius ** (self.slope - 1) | [
"Rescale",
"the",
"einstein",
"radius",
"by",
"slope",
"and",
"axis_ratio",
"to",
"reduce",
"its",
"degeneracy",
"with",
"other",
"mass",
"-",
"profiles",
"parameters"
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L353-L356 | [
"def",
"einstein_radius_rescaled",
"(",
"self",
")",
":",
"return",
"(",
"(",
"3",
"-",
"self",
".",
"slope",
")",
"/",
"(",
"1",
"+",
"self",
".",
"axis_ratio",
")",
")",
"*",
"self",
".",
"einstein_radius",
"**",
"(",
"self",
".",
"slope",
"-",
"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalCoredPowerLaw.convergence_from_grid | Calculate the projected convergence at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the surface density is computed on. | autolens/model/profiles/mass_profiles.py | def convergence_from_grid(self, grid):
""" Calculate the projected convergence at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the surface density is computed on.
"""
s... | def convergence_from_grid(self, grid):
""" Calculate the projected convergence at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the surface density is computed on.
"""
s... | [
"Calculate",
"the",
"projected",
"convergence",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L360-L376 | [
"def",
"convergence_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"surface_density_grid",
"=",
"np",
".",
"zeros",
"(",
"grid",
".",
"shape",
"[",
"0",
"]",
")",
"grid_eta",
"=",
"self",
".",
"grid_to_elliptical_radii",
"(",
"grid",
")",
"for",
"i",
"i... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalCoredPowerLaw.potential_from_grid | Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def potential_from_grid(self, grid):
"""
Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
pote... | def potential_from_grid(self, grid):
"""
Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
pote... | [
"Calculate",
"the",
"potential",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L380-L393 | [
"def",
"potential_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"potential_grid",
"=",
"quad_grid",
"(",
"self",
".",
"potential_func",
",",
"0.0",
",",
"1.0",
",",
"grid",
",",
"args",
"=",
"(",
"self",
".",
"axis_ratio",
",",
"self",
".",
"slope",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalCoredPowerLaw.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L399-L423 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"def",
"calculate_deflection_component",
"(",
"npow",
",",
"index",
")",
":",
"einstein_radius_rescaled",
"=",
"self",
".",
"einstein_radius_rescaled",
"deflection_grid",
"=",
"self",
".",
"axis_rat... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalCoredPowerLaw.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L484-L497 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"eta",
"=",
"self",
".",
"grid_to_grid_radii",
"(",
"grid",
"=",
"grid",
")",
"deflection",
"=",
"np",
".",
"multiply",
"(",
"2.",
"*",
"self",
".",
"einstein_radius_rescaled",
",",
"np",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalIsothermal.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
For coordinates (0.0, 0.0) the analytic calculation of the deflection angle gives a NaN. Therefore, \
coordinates at (0.0, 0.0) are shifted slightly to (1.0e-8, 1.0e-8).
Parameters
----------
grid... | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
For coordinates (0.0, 0.0) the analytic calculation of the deflection angle gives a NaN. Therefore, \
coordinates at (0.0, 0.0) are shifted slightly to (1.0e-8, 1... | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
For coordinates (0.0, 0.0) the analytic calculation of the deflection angle gives a NaN. Therefore, \
coordinates at (0.0, 0.0) are shifted slightly to (1.0e-8, 1... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L673-L691 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"factor",
"=",
"2.0",
"*",
"self",
".",
"einstein_radius_rescaled",
"*",
"self",
".",
"axis_ratio",
"/",
"np",
".",
"sqrt",
"(",
"1",
"-",
"self",
".",
"axis_ratio",
"**",
"2",
")",
"p... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalIsothermal.potential_from_grid | Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def potential_from_grid(self, grid):
"""
Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
eta =... | def potential_from_grid(self, grid):
"""
Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
eta =... | [
"Calculate",
"the",
"potential",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L716-L726 | [
"def",
"potential_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"eta",
"=",
"self",
".",
"grid_to_elliptical_radii",
"(",
"grid",
")",
"return",
"2.0",
"*",
"self",
".",
"einstein_radius_rescaled",
"*",
"eta"
] | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalIsothermal.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L730-L740 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"return",
"self",
".",
"grid_to_grid_cartesian",
"(",
"grid",
"=",
"grid",
",",
"radius",
"=",
"np",
".",
"full",
"(",
"grid",
".",
"shape",
"[",
"0",
"]",
",",
"2.0",
"*",
"self",
"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | AbstractEllipticalGeneralizedNFW.tabulate_integral | Tabulate an integral over the surface density of deflection potential of a mass profile. This is used in \
the GeneralizedNFW profile classes to speed up the integration procedure.
Parameters
-----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the p... | autolens/model/profiles/mass_profiles.py | def tabulate_integral(self, grid, tabulate_bins):
"""Tabulate an integral over the surface density of deflection potential of a mass profile. This is used in \
the GeneralizedNFW profile classes to speed up the integration procedure.
Parameters
-----------
grid : grids.RegularGr... | def tabulate_integral(self, grid, tabulate_bins):
"""Tabulate an integral over the surface density of deflection potential of a mass profile. This is used in \
the GeneralizedNFW profile classes to speed up the integration procedure.
Parameters
-----------
grid : grids.RegularGr... | [
"Tabulate",
"an",
"integral",
"over",
"the",
"surface",
"density",
"of",
"deflection",
"potential",
"of",
"a",
"mass",
"profile",
".",
"This",
"is",
"used",
"in",
"\\",
"the",
"GeneralizedNFW",
"profile",
"classes",
"to",
"speed",
"up",
"the",
"integration",
... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L782-L800 | [
"def",
"tabulate_integral",
"(",
"self",
",",
"grid",
",",
"tabulate_bins",
")",
":",
"eta_min",
"=",
"1.0e-4",
"eta_max",
"=",
"1.05",
"*",
"np",
".",
"max",
"(",
"self",
".",
"grid_to_elliptical_radii",
"(",
"grid",
")",
")",
"minimum_log_eta",
"=",
"np"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalGeneralizedNFW.potential_from_grid | Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
tabulate_bins : int
The number of bins to tabulate the inner i... | autolens/model/profiles/mass_profiles.py | def potential_from_grid(self, grid, tabulate_bins=1000):
"""
Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
... | def potential_from_grid(self, grid, tabulate_bins=1000):
"""
Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
... | [
"Calculate",
"the",
"potential",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L954-L996 | [
"def",
"potential_from_grid",
"(",
"self",
",",
"grid",
",",
"tabulate_bins",
"=",
"1000",
")",
":",
"@",
"jit_integrand",
"def",
"deflection_integrand",
"(",
"x",
",",
"kappa_radius",
",",
"scale_radius",
",",
"inner_slope",
")",
":",
"return",
"(",
"x",
"+... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalGeneralizedNFW.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
tabulate_bins : int
The number of bins to tabulate the... | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid, tabulate_bins=1000):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed... | def deflections_from_grid(self, grid, tabulate_bins=1000):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1002-L1044 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
",",
"tabulate_bins",
"=",
"1000",
")",
":",
"@",
"jit_integrand",
"def",
"surface_density_integrand",
"(",
"x",
",",
"kappa_radius",
",",
"scale_radius",
",",
"inner_slope",
")",
":",
"return",
"(",
"3... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalGeneralizedNFW.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid, **kwargs):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
... | def deflections_from_grid(self, grid, **kwargs):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1117-L1134 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
",",
"*",
"*",
"kwargs",
")",
":",
"eta",
"=",
"np",
".",
"multiply",
"(",
"1.",
"/",
"self",
".",
"scale_radius",
",",
"self",
".",
"grid_to_grid_radii",
"(",
"grid",
")",
")",
"deflection_grid",... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalTruncatedNFW.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid, **kwargs):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
... | def deflections_from_grid(self, grid, **kwargs):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1201-L1215 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
",",
"*",
"*",
"kwargs",
")",
":",
"eta",
"=",
"np",
".",
"multiply",
"(",
"1.",
"/",
"self",
".",
"scale_radius",
",",
"self",
".",
"grid_to_grid_radii",
"(",
"grid",
")",
")",
"deflection_grid",... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalNFW.potential_from_grid | Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def potential_from_grid(self, grid):
"""
Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
poten... | def potential_from_grid(self, grid):
"""
Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
poten... | [
"Calculate",
"the",
"potential",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1317-L1330 | [
"def",
"potential_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"potential_grid",
"=",
"quad_grid",
"(",
"self",
".",
"potential_func",
",",
"0.0",
",",
"1.0",
",",
"grid",
",",
"args",
"=",
"(",
"self",
".",
"axis_ratio",
",",
"self",
".",
"kappa_s",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalNFW.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1336-L1357 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"def",
"calculate_deflection_component",
"(",
"npow",
",",
"index",
")",
":",
"deflection_grid",
"=",
"self",
".",
"axis_ratio",
"*",
"grid",
"[",
":",
",",
"index",
"]",
"deflection_grid",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalNFW.potential_from_grid | Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def potential_from_grid(self, grid):
"""
Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
eta =... | def potential_from_grid(self, grid):
"""
Calculate the potential at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
eta =... | [
"Calculate",
"the",
"potential",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1424-L1434 | [
"def",
"potential_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"eta",
"=",
"(",
"1.0",
"/",
"self",
".",
"scale_radius",
")",
"*",
"self",
".",
"grid_to_grid_radii",
"(",
"grid",
")",
"+",
"0j",
"return",
"np",
".",
"real",
"(",
"2.0",
"*",
"self"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalNFW.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1438-L1450 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"eta",
"=",
"np",
".",
"multiply",
"(",
"1.",
"/",
"self",
".",
"scale_radius",
",",
"self",
".",
"grid_to_grid_radii",
"(",
"grid",
"=",
"grid",
")",
")",
"deflection_r",
"=",
"np",
"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | AbstractEllipticalSersic.intensity_at_radius | Compute the intensity of the profile at a given radius.
Parameters
----------
radius : float
The distance from the centre of the profile. | autolens/model/profiles/mass_profiles.py | def intensity_at_radius(self, radius):
""" Compute the intensity of the profile at a given radius.
Parameters
----------
radius : float
The distance from the centre of the profile.
"""
return self.intensity * np.exp(
-self.sersic_constant * (((rad... | def intensity_at_radius(self, radius):
""" Compute the intensity of the profile at a given radius.
Parameters
----------
radius : float
The distance from the centre of the profile.
"""
return self.intensity * np.exp(
-self.sersic_constant * (((rad... | [
"Compute",
"the",
"intensity",
"of",
"the",
"profile",
"at",
"a",
"given",
"radius",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1527-L1536 | [
"def",
"intensity_at_radius",
"(",
"self",
",",
"radius",
")",
":",
"return",
"self",
".",
"intensity",
"*",
"np",
".",
"exp",
"(",
"-",
"self",
".",
"sersic_constant",
"*",
"(",
"(",
"(",
"radius",
"/",
"self",
".",
"effective_radius",
")",
"**",
"(",... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | AbstractEllipticalSersic.sersic_constant | A parameter derived from Sersic index which ensures that effective radius contains 50% of the profile's
total integrated light. | autolens/model/profiles/mass_profiles.py | def sersic_constant(self):
""" A parameter derived from Sersic index which ensures that effective radius contains 50% of the profile's
total integrated light.
"""
return (2 * self.sersic_index) - (1. / 3.) + (4. / (405. * self.sersic_index)) + (
46. / (25515. * self.sersi... | def sersic_constant(self):
""" A parameter derived from Sersic index which ensures that effective radius contains 50% of the profile's
total integrated light.
"""
return (2 * self.sersic_index) - (1. / 3.) + (4. / (405. * self.sersic_index)) + (
46. / (25515. * self.sersi... | [
"A",
"parameter",
"derived",
"from",
"Sersic",
"index",
"which",
"ensures",
"that",
"effective",
"radius",
"contains",
"50%",
"of",
"the",
"profile",
"s",
"total",
"integrated",
"light",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1539-L1545 | [
"def",
"sersic_constant",
"(",
"self",
")",
":",
"return",
"(",
"2",
"*",
"self",
".",
"sersic_index",
")",
"-",
"(",
"1.",
"/",
"3.",
")",
"+",
"(",
"4.",
"/",
"(",
"405.",
"*",
"self",
".",
"sersic_index",
")",
")",
"+",
"(",
"46.",
"/",
"(",... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalSersicRadialGradient.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1813-L1837 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"def",
"calculate_deflection_component",
"(",
"npow",
",",
"index",
")",
":",
"sersic_constant",
"=",
"self",
".",
"sersic_constant",
"deflection_grid",
"=",
"self",
".",
"axis_ratio",
"*",
"gri... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | ExternalShear.deflections_from_grid | Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on. | autolens/model/profiles/mass_profiles.py | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | def deflections_from_grid(self, grid):
"""
Calculate the deflection angles at a given set of arc-second gridded coordinates.
Parameters
----------
grid : grids.RegularGrid
The grid of (y,x) arc-second coordinates the deflection angles are computed on.
"""
... | [
"Calculate",
"the",
"deflection",
"angles",
"at",
"a",
"given",
"set",
"of",
"arc",
"-",
"second",
"gridded",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/mass_profiles.py#L1965-L1976 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"deflection_y",
"=",
"-",
"np",
".",
"multiply",
"(",
"self",
".",
"magnitude",
",",
"grid",
"[",
":",
",",
"0",
"]",
")",
"deflection_x",
"=",
"np",
".",
"multiply",
"(",
"self",
".... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Galaxy.intensities_from_grid | Calculate the summed intensities of all of the galaxy's light profiles using a grid of Cartesian (y,x) \
coordinates.
If the galaxy has no light profiles, a grid of zeros is returned.
See *profiles.light_profiles* for a description of how light profile intensities are computed.... | autolens/model/galaxy/galaxy.py | def intensities_from_grid(self, grid):
"""Calculate the summed intensities of all of the galaxy's light profiles using a grid of Cartesian (y,x) \
coordinates.
If the galaxy has no light profiles, a grid of zeros is returned.
See *profiles.light_profiles* for a descript... | def intensities_from_grid(self, grid):
"""Calculate the summed intensities of all of the galaxy's light profiles using a grid of Cartesian (y,x) \
coordinates.
If the galaxy has no light profiles, a grid of zeros is returned.
See *profiles.light_profiles* for a descript... | [
"Calculate",
"the",
"summed",
"intensities",
"of",
"all",
"of",
"the",
"galaxy",
"s",
"light",
"profiles",
"using",
"a",
"grid",
"of",
"Cartesian",
"(",
"y",
"x",
")",
"\\",
"coordinates",
".",
"If",
"the",
"galaxy",
"has",
"no",
"light",
"profiles",
"a"... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L120-L136 | [
"def",
"intensities_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"if",
"self",
".",
"has_light_profile",
":",
"return",
"sum",
"(",
"map",
"(",
"lambda",
"p",
":",
"p",
".",
"intensities_from_grid",
"(",
"grid",
")",
",",
"self",
".",
"light_profiles",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Galaxy.luminosity_within_circle_in_units | Compute the total luminosity of the galaxy's light profiles within a circle of specified radius.
See *light_profiles.luminosity_within_circle* for details of how this is performed.
Parameters
----------
radius : float
The radius of the circle to compute the dimensionless ma... | autolens/model/galaxy/galaxy.py | def luminosity_within_circle_in_units(self, radius : dim.Length, unit_luminosity='eps', kpc_per_arcsec=None, exposure_time=None):
"""Compute the total luminosity of the galaxy's light profiles within a circle of specified radius.
See *light_profiles.luminosity_within_circle* for details of how this is ... | def luminosity_within_circle_in_units(self, radius : dim.Length, unit_luminosity='eps', kpc_per_arcsec=None, exposure_time=None):
"""Compute the total luminosity of the galaxy's light profiles within a circle of specified radius.
See *light_profiles.luminosity_within_circle* for details of how this is ... | [
"Compute",
"the",
"total",
"luminosity",
"of",
"the",
"galaxy",
"s",
"light",
"profiles",
"within",
"a",
"circle",
"of",
"specified",
"radius",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L138-L157 | [
"def",
"luminosity_within_circle_in_units",
"(",
"self",
",",
"radius",
":",
"dim",
".",
"Length",
",",
"unit_luminosity",
"=",
"'eps'",
",",
"kpc_per_arcsec",
"=",
"None",
",",
"exposure_time",
"=",
"None",
")",
":",
"if",
"self",
".",
"has_light_profile",
":... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Galaxy.luminosity_within_ellipse_in_units | Compute the total luminosity of the galaxy's light profiles, within an ellipse of specified major axis. This
is performed via integration of each light profile and is centred, oriented and aligned with each light
model's individual geometry.
See *light_profiles.luminosity_within_ellipse* for d... | autolens/model/galaxy/galaxy.py | def luminosity_within_ellipse_in_units(self, major_axis : dim.Length, unit_luminosity='eps', kpc_per_arcsec=None, exposure_time=None):
"""Compute the total luminosity of the galaxy's light profiles, within an ellipse of specified major axis. This
is performed via integration of each light profile and i... | def luminosity_within_ellipse_in_units(self, major_axis : dim.Length, unit_luminosity='eps', kpc_per_arcsec=None, exposure_time=None):
"""Compute the total luminosity of the galaxy's light profiles, within an ellipse of specified major axis. This
is performed via integration of each light profile and i... | [
"Compute",
"the",
"total",
"luminosity",
"of",
"the",
"galaxy",
"s",
"light",
"profiles",
"within",
"an",
"ellipse",
"of",
"specified",
"major",
"axis",
".",
"This",
"is",
"performed",
"via",
"integration",
"of",
"each",
"light",
"profile",
"and",
"is",
"cen... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L159-L180 | [
"def",
"luminosity_within_ellipse_in_units",
"(",
"self",
",",
"major_axis",
":",
"dim",
".",
"Length",
",",
"unit_luminosity",
"=",
"'eps'",
",",
"kpc_per_arcsec",
"=",
"None",
",",
"exposure_time",
"=",
"None",
")",
":",
"if",
"self",
".",
"has_light_profile",... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Galaxy.convergence_from_grid | Compute the summed convergence of the galaxy's mass profiles using a grid of Cartesian (y,x) \
coordinates.
If the galaxy has no mass profiles, a grid of zeros is returned.
See *profiles.mass_profiles* module for details of how this is performed.
Parameters
----------
... | autolens/model/galaxy/galaxy.py | def convergence_from_grid(self, grid):
"""Compute the summed convergence of the galaxy's mass profiles using a grid of Cartesian (y,x) \
coordinates.
If the galaxy has no mass profiles, a grid of zeros is returned.
See *profiles.mass_profiles* module for details of how this is ... | def convergence_from_grid(self, grid):
"""Compute the summed convergence of the galaxy's mass profiles using a grid of Cartesian (y,x) \
coordinates.
If the galaxy has no mass profiles, a grid of zeros is returned.
See *profiles.mass_profiles* module for details of how this is ... | [
"Compute",
"the",
"summed",
"convergence",
"of",
"the",
"galaxy",
"s",
"mass",
"profiles",
"using",
"a",
"grid",
"of",
"Cartesian",
"(",
"y",
"x",
")",
"\\",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L182-L198 | [
"def",
"convergence_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"if",
"self",
".",
"has_mass_profile",
":",
"return",
"sum",
"(",
"map",
"(",
"lambda",
"p",
":",
"p",
".",
"convergence_from_grid",
"(",
"grid",
")",
",",
"self",
".",
"mass_profiles",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Galaxy.deflections_from_grid | Compute the summed (y,x) deflection angles of the galaxy's mass profiles using a grid of Cartesian (y,x) \
coordinates.
If the galaxy has no mass profiles, two grid of zeros are returned.
See *profiles.mass_profiles* module for details of how this is performed.
Parameters
----... | autolens/model/galaxy/galaxy.py | def deflections_from_grid(self, grid):
"""Compute the summed (y,x) deflection angles of the galaxy's mass profiles using a grid of Cartesian (y,x) \
coordinates.
If the galaxy has no mass profiles, two grid of zeros are returned.
See *profiles.mass_profiles* module for details of how t... | def deflections_from_grid(self, grid):
"""Compute the summed (y,x) deflection angles of the galaxy's mass profiles using a grid of Cartesian (y,x) \
coordinates.
If the galaxy has no mass profiles, two grid of zeros are returned.
See *profiles.mass_profiles* module for details of how t... | [
"Compute",
"the",
"summed",
"(",
"y",
"x",
")",
"deflection",
"angles",
"of",
"the",
"galaxy",
"s",
"mass",
"profiles",
"using",
"a",
"grid",
"of",
"Cartesian",
"(",
"y",
"x",
")",
"\\",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L218-L234 | [
"def",
"deflections_from_grid",
"(",
"self",
",",
"grid",
")",
":",
"if",
"self",
".",
"has_mass_profile",
":",
"return",
"sum",
"(",
"map",
"(",
"lambda",
"p",
":",
"p",
".",
"deflections_from_grid",
"(",
"grid",
")",
",",
"self",
".",
"mass_profiles",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Galaxy.mass_within_circle_in_units | Compute the total angular mass of the galaxy's mass profiles within a circle of specified radius.
See *profiles.mass_profiles.mass_within_circle* for details of how this is performed.
Parameters
----------
radius : float
The radius of the circle to compute the dimensionless... | autolens/model/galaxy/galaxy.py | def mass_within_circle_in_units(self, radius, unit_mass='angular', kpc_per_arcsec=None, critical_surface_density=None):
"""Compute the total angular mass of the galaxy's mass profiles within a circle of specified radius.
See *profiles.mass_profiles.mass_within_circle* for details of how this is perform... | def mass_within_circle_in_units(self, radius, unit_mass='angular', kpc_per_arcsec=None, critical_surface_density=None):
"""Compute the total angular mass of the galaxy's mass profiles within a circle of specified radius.
See *profiles.mass_profiles.mass_within_circle* for details of how this is perform... | [
"Compute",
"the",
"total",
"angular",
"mass",
"of",
"the",
"galaxy",
"s",
"mass",
"profiles",
"within",
"a",
"circle",
"of",
"specified",
"radius",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L236-L257 | [
"def",
"mass_within_circle_in_units",
"(",
"self",
",",
"radius",
",",
"unit_mass",
"=",
"'angular'",
",",
"kpc_per_arcsec",
"=",
"None",
",",
"critical_surface_density",
"=",
"None",
")",
":",
"if",
"self",
".",
"has_mass_profile",
":",
"return",
"sum",
"(",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Galaxy.mass_within_ellipse_in_units | Compute the total angular mass of the galaxy's mass profiles within an ellipse of specified major_axis.
See *profiles.mass_profiles.angualr_mass_within_ellipse* for details of how this is performed.
Parameters
----------
major_axis : float
The major-axis radius of the ellip... | autolens/model/galaxy/galaxy.py | def mass_within_ellipse_in_units(self, major_axis, unit_mass='angular', kpc_per_arcsec=None, critical_surface_density=None):
"""Compute the total angular mass of the galaxy's mass profiles within an ellipse of specified major_axis.
See *profiles.mass_profiles.angualr_mass_within_ellipse* for details of... | def mass_within_ellipse_in_units(self, major_axis, unit_mass='angular', kpc_per_arcsec=None, critical_surface_density=None):
"""Compute the total angular mass of the galaxy's mass profiles within an ellipse of specified major_axis.
See *profiles.mass_profiles.angualr_mass_within_ellipse* for details of... | [
"Compute",
"the",
"total",
"angular",
"mass",
"of",
"the",
"galaxy",
"s",
"mass",
"profiles",
"within",
"an",
"ellipse",
"of",
"specified",
"major_axis",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L259-L279 | [
"def",
"mass_within_ellipse_in_units",
"(",
"self",
",",
"major_axis",
",",
"unit_mass",
"=",
"'angular'",
",",
"kpc_per_arcsec",
"=",
"None",
",",
"critical_surface_density",
"=",
"None",
")",
":",
"if",
"self",
".",
"has_mass_profile",
":",
"return",
"sum",
"(... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Galaxy.einstein_radius_in_units | The Einstein Radius of this galaxy, which is the sum of Einstein Radii of its mass profiles.
If the galaxy is composed of multiple ellipitcal profiles with different axis-ratios, this Einstein Radius \
may be inaccurate. This is because the differently oriented ellipses of each mass profile | autolens/model/galaxy/galaxy.py | def einstein_radius_in_units(self, unit_length='arcsec', kpc_per_arcsec=None):
"""The Einstein Radius of this galaxy, which is the sum of Einstein Radii of its mass profiles.
If the galaxy is composed of multiple ellipitcal profiles with different axis-ratios, this Einstein Radius \
may be inac... | def einstein_radius_in_units(self, unit_length='arcsec', kpc_per_arcsec=None):
"""The Einstein Radius of this galaxy, which is the sum of Einstein Radii of its mass profiles.
If the galaxy is composed of multiple ellipitcal profiles with different axis-ratios, this Einstein Radius \
may be inac... | [
"The",
"Einstein",
"Radius",
"of",
"this",
"galaxy",
"which",
"is",
"the",
"sum",
"of",
"Einstein",
"Radii",
"of",
"its",
"mass",
"profiles",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L281-L291 | [
"def",
"einstein_radius_in_units",
"(",
"self",
",",
"unit_length",
"=",
"'arcsec'",
",",
"kpc_per_arcsec",
"=",
"None",
")",
":",
"if",
"self",
".",
"has_mass_profile",
":",
"return",
"sum",
"(",
"map",
"(",
"lambda",
"p",
":",
"p",
".",
"einstein_radius_in... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Galaxy.einstein_mass_in_units | The Einstein Mass of this galaxy, which is the sum of Einstein Radii of its mass profiles.
If the galaxy is composed of multiple ellipitcal profiles with different axis-ratios, this Einstein Mass \
may be inaccurate. This is because the differently oriented ellipses of each mass profile | autolens/model/galaxy/galaxy.py | def einstein_mass_in_units(self, unit_mass='angular', critical_surface_density=None):
"""The Einstein Mass of this galaxy, which is the sum of Einstein Radii of its mass profiles.
If the galaxy is composed of multiple ellipitcal profiles with different axis-ratios, this Einstein Mass \
may be i... | def einstein_mass_in_units(self, unit_mass='angular', critical_surface_density=None):
"""The Einstein Mass of this galaxy, which is the sum of Einstein Radii of its mass profiles.
If the galaxy is composed of multiple ellipitcal profiles with different axis-ratios, this Einstein Mass \
may be i... | [
"The",
"Einstein",
"Mass",
"of",
"this",
"galaxy",
"which",
"is",
"the",
"sum",
"of",
"Einstein",
"Radii",
"of",
"its",
"mass",
"profiles",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L293-L305 | [
"def",
"einstein_mass_in_units",
"(",
"self",
",",
"unit_mass",
"=",
"'angular'",
",",
"critical_surface_density",
"=",
"None",
")",
":",
"if",
"self",
".",
"has_mass_profile",
":",
"return",
"sum",
"(",
"map",
"(",
"lambda",
"p",
":",
"p",
".",
"einstein_ma... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | HyperGalaxy.contributions_from_model_image_and_galaxy_image | Compute the contribution map of a galaxy, which represents the fraction of flux in each pixel that the \
galaxy is attributed to contain, scaled to the *contribution_factor* hyper-parameter.
This is computed by dividing that galaxy's flux by the total flux in that pixel, and then scaling by the \
... | autolens/model/galaxy/galaxy.py | def contributions_from_model_image_and_galaxy_image(self, model_image, galaxy_image, minimum_value=0.0):
"""Compute the contribution map of a galaxy, which represents the fraction of flux in each pixel that the \
galaxy is attributed to contain, scaled to the *contribution_factor* hyper-parameter.
... | def contributions_from_model_image_and_galaxy_image(self, model_image, galaxy_image, minimum_value=0.0):
"""Compute the contribution map of a galaxy, which represents the fraction of flux in each pixel that the \
galaxy is attributed to contain, scaled to the *contribution_factor* hyper-parameter.
... | [
"Compute",
"the",
"contribution",
"map",
"of",
"a",
"galaxy",
"which",
"represents",
"the",
"fraction",
"of",
"flux",
"in",
"each",
"pixel",
"that",
"the",
"\\",
"galaxy",
"is",
"attributed",
"to",
"contain",
"scaled",
"to",
"the",
"*",
"contribution_factor",
... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L343-L363 | [
"def",
"contributions_from_model_image_and_galaxy_image",
"(",
"self",
",",
"model_image",
",",
"galaxy_image",
",",
"minimum_value",
"=",
"0.0",
")",
":",
"contributions",
"=",
"np",
".",
"divide",
"(",
"galaxy_image",
",",
"np",
".",
"add",
"(",
"model_image",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | HyperGalaxy.hyper_noise_from_contributions | Compute a scaled galaxy hyper noise-map from a baseline noise-map.
This uses the galaxy contribution map and the *noise_factor* and *noise_power* hyper-parameters.
Parameters
-----------
noise_map : ndarray
The observed noise-map (before scaling).
contributions : nd... | autolens/model/galaxy/galaxy.py | def hyper_noise_from_contributions(self, noise_map, contributions):
"""Compute a scaled galaxy hyper noise-map from a baseline noise-map.
This uses the galaxy contribution map and the *noise_factor* and *noise_power* hyper-parameters.
Parameters
-----------
noise_map : ndarray
... | def hyper_noise_from_contributions(self, noise_map, contributions):
"""Compute a scaled galaxy hyper noise-map from a baseline noise-map.
This uses the galaxy contribution map and the *noise_factor* and *noise_power* hyper-parameters.
Parameters
-----------
noise_map : ndarray
... | [
"Compute",
"a",
"scaled",
"galaxy",
"hyper",
"noise",
"-",
"map",
"from",
"a",
"baseline",
"noise",
"-",
"map",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/galaxy.py#L365-L377 | [
"def",
"hyper_noise_from_contributions",
"(",
"self",
",",
"noise_map",
",",
"contributions",
")",
":",
"return",
"self",
".",
"noise_factor",
"*",
"(",
"noise_map",
"*",
"contributions",
")",
"**",
"self",
".",
"noise_power"
] | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Convolver.frame_at_coordinates_jit | Compute the frame (indexes of pixels light is blurred into) and psf_frame (psf kernel values of those \
pixels) for a given coordinate in a masks and its PSF.
Parameters
----------
coordinates: (int, int)
The coordinates of mask_index_array on which the frame should be centr... | autolens/data/convolution.py | def frame_at_coordinates_jit(coordinates, mask, mask_index_array, psf):
""" Compute the frame (indexes of pixels light is blurred into) and psf_frame (psf kernel values of those \
pixels) for a given coordinate in a masks and its PSF.
Parameters
----------
coordinates: (int, int... | def frame_at_coordinates_jit(coordinates, mask, mask_index_array, psf):
""" Compute the frame (indexes of pixels light is blurred into) and psf_frame (psf kernel values of those \
pixels) for a given coordinate in a masks and its PSF.
Parameters
----------
coordinates: (int, int... | [
"Compute",
"the",
"frame",
"(",
"indexes",
"of",
"pixels",
"light",
"is",
"blurred",
"into",
")",
"and",
"psf_frame",
"(",
"psf",
"kernel",
"values",
"of",
"those",
"\\",
"pixels",
")",
"for",
"a",
"given",
"coordinate",
"in",
"a",
"masks",
"and",
"its",... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/convolution.py#L213-L246 | [
"def",
"frame_at_coordinates_jit",
"(",
"coordinates",
",",
"mask",
",",
"mask_index_array",
",",
"psf",
")",
":",
"psf_shape",
"=",
"psf",
".",
"shape",
"psf_max_size",
"=",
"psf_shape",
"[",
"0",
"]",
"*",
"psf_shape",
"[",
"1",
"]",
"half_x",
"=",
"int"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | ConvolverImage.convolve_image | For a given 1D regular array and blurring array, convolve the two using this convolver.
Parameters
-----------
image_array : ndarray
1D array of the regular values which are to be blurred with the convolver's PSF.
blurring_array : ndarray
1D array of the blurring... | autolens/data/convolution.py | def convolve_image(self, image_array, blurring_array):
"""For a given 1D regular array and blurring array, convolve the two using this convolver.
Parameters
-----------
image_array : ndarray
1D array of the regular values which are to be blurred with the convolver's PSF.
... | def convolve_image(self, image_array, blurring_array):
"""For a given 1D regular array and blurring array, convolve the two using this convolver.
Parameters
-----------
image_array : ndarray
1D array of the regular values which are to be blurred with the convolver's PSF.
... | [
"For",
"a",
"given",
"1D",
"regular",
"array",
"and",
"blurring",
"array",
"convolve",
"the",
"two",
"using",
"this",
"convolver",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/convolution.py#L287-L299 | [
"def",
"convolve_image",
"(",
"self",
",",
"image_array",
",",
"blurring_array",
")",
":",
"return",
"self",
".",
"convolve_jit",
"(",
"image_array",
",",
"self",
".",
"image_frame_indexes",
",",
"self",
".",
"image_frame_psfs",
",",
"self",
".",
"image_frame_le... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | intensities_of_galaxies_from_grid | Compute the intensities of a list of galaxies from an input grid, by summing the individual intensities \
of each galaxy's light profile.
If the input grid is a *grids.SubGrid*, the intensites is calculated on the sub-grid and binned-up to the \
original regular grid by taking the mean value of every set o... | autolens/model/galaxy/util/galaxy_util.py | def intensities_of_galaxies_from_grid(grid, galaxies):
"""Compute the intensities of a list of galaxies from an input grid, by summing the individual intensities \
of each galaxy's light profile.
If the input grid is a *grids.SubGrid*, the intensites is calculated on the sub-grid and binned-up to the \
... | def intensities_of_galaxies_from_grid(grid, galaxies):
"""Compute the intensities of a list of galaxies from an input grid, by summing the individual intensities \
of each galaxy's light profile.
If the input grid is a *grids.SubGrid*, the intensites is calculated on the sub-grid and binned-up to the \
... | [
"Compute",
"the",
"intensities",
"of",
"a",
"list",
"of",
"galaxies",
"from",
"an",
"input",
"grid",
"by",
"summing",
"the",
"individual",
"intensities",
"\\",
"of",
"each",
"galaxy",
"s",
"light",
"profile",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/util/galaxy_util.py#L7-L27 | [
"def",
"intensities_of_galaxies_from_grid",
"(",
"grid",
",",
"galaxies",
")",
":",
"if",
"galaxies",
":",
"return",
"sum",
"(",
"map",
"(",
"lambda",
"g",
":",
"g",
".",
"intensities_from_grid",
"(",
"grid",
")",
",",
"galaxies",
")",
")",
"else",
":",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | convergence_of_galaxies_from_grid | Compute the convergence of a list of galaxies from an input grid, by summing the individual convergence \
of each galaxy's mass profile.
If the input grid is a *grids.SubGrid*, the convergence is calculated on the sub-grid and binned-up to the \
original regular grid by taking the mean value of every set o... | autolens/model/galaxy/util/galaxy_util.py | def convergence_of_galaxies_from_grid(grid, galaxies):
"""Compute the convergence of a list of galaxies from an input grid, by summing the individual convergence \
of each galaxy's mass profile.
If the input grid is a *grids.SubGrid*, the convergence is calculated on the sub-grid and binned-up to the \
... | def convergence_of_galaxies_from_grid(grid, galaxies):
"""Compute the convergence of a list of galaxies from an input grid, by summing the individual convergence \
of each galaxy's mass profile.
If the input grid is a *grids.SubGrid*, the convergence is calculated on the sub-grid and binned-up to the \
... | [
"Compute",
"the",
"convergence",
"of",
"a",
"list",
"of",
"galaxies",
"from",
"an",
"input",
"grid",
"by",
"summing",
"the",
"individual",
"convergence",
"\\",
"of",
"each",
"galaxy",
"s",
"mass",
"profile",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/util/galaxy_util.py#L31-L51 | [
"def",
"convergence_of_galaxies_from_grid",
"(",
"grid",
",",
"galaxies",
")",
":",
"if",
"galaxies",
":",
"return",
"sum",
"(",
"map",
"(",
"lambda",
"g",
":",
"g",
".",
"convergence_from_grid",
"(",
"grid",
")",
",",
"galaxies",
")",
")",
"else",
":",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | potential_of_galaxies_from_grid | Compute the potential of a list of galaxies from an input grid, by summing the individual potential \
of each galaxy's mass profile.
If the input grid is a *grids.SubGrid*, the surface-density is calculated on the sub-grid and binned-up to the \
original regular grid by taking the mean value of every set o... | autolens/model/galaxy/util/galaxy_util.py | def potential_of_galaxies_from_grid(grid, galaxies):
"""Compute the potential of a list of galaxies from an input grid, by summing the individual potential \
of each galaxy's mass profile.
If the input grid is a *grids.SubGrid*, the surface-density is calculated on the sub-grid and binned-up to the \
o... | def potential_of_galaxies_from_grid(grid, galaxies):
"""Compute the potential of a list of galaxies from an input grid, by summing the individual potential \
of each galaxy's mass profile.
If the input grid is a *grids.SubGrid*, the surface-density is calculated on the sub-grid and binned-up to the \
o... | [
"Compute",
"the",
"potential",
"of",
"a",
"list",
"of",
"galaxies",
"from",
"an",
"input",
"grid",
"by",
"summing",
"the",
"individual",
"potential",
"\\",
"of",
"each",
"galaxy",
"s",
"mass",
"profile",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/util/galaxy_util.py#L55-L75 | [
"def",
"potential_of_galaxies_from_grid",
"(",
"grid",
",",
"galaxies",
")",
":",
"if",
"galaxies",
":",
"return",
"sum",
"(",
"map",
"(",
"lambda",
"g",
":",
"g",
".",
"potential_from_grid",
"(",
"grid",
")",
",",
"galaxies",
")",
")",
"else",
":",
"ret... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | deflections_of_galaxies_from_grid | Compute the deflections of a list of galaxies from an input grid, by summing the individual deflections \
of each galaxy's mass profile.
If the input grid is a *grids.SubGrid*, the potential is calculated on the sub-grid and binned-up to the \
original regular grid by taking the mean value of every set of ... | autolens/model/galaxy/util/galaxy_util.py | def deflections_of_galaxies_from_grid(grid, galaxies):
"""Compute the deflections of a list of galaxies from an input grid, by summing the individual deflections \
of each galaxy's mass profile.
If the input grid is a *grids.SubGrid*, the potential is calculated on the sub-grid and binned-up to the \
o... | def deflections_of_galaxies_from_grid(grid, galaxies):
"""Compute the deflections of a list of galaxies from an input grid, by summing the individual deflections \
of each galaxy's mass profile.
If the input grid is a *grids.SubGrid*, the potential is calculated on the sub-grid and binned-up to the \
o... | [
"Compute",
"the",
"deflections",
"of",
"a",
"list",
"of",
"galaxies",
"from",
"an",
"input",
"grid",
"by",
"summing",
"the",
"individual",
"deflections",
"\\",
"of",
"each",
"galaxy",
"s",
"mass",
"profile",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/util/galaxy_util.py#L78-L104 | [
"def",
"deflections_of_galaxies_from_grid",
"(",
"grid",
",",
"galaxies",
")",
":",
"if",
"len",
"(",
"galaxies",
")",
">",
"0",
":",
"deflections",
"=",
"sum",
"(",
"map",
"(",
"lambda",
"galaxy",
":",
"galaxy",
".",
"deflections_from_grid",
"(",
"grid",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | deflections_of_galaxies_from_sub_grid | Compute the deflections of a list of galaxies from an input sub-grid, by summing the individual deflections \
of each galaxy's mass profile.
The deflections are calculated on the sub-grid and binned-up to the original regular grid by taking the mean value \
of every set of sub-pixels.
If no galaxies a... | autolens/model/galaxy/util/galaxy_util.py | def deflections_of_galaxies_from_sub_grid(sub_grid, galaxies):
"""Compute the deflections of a list of galaxies from an input sub-grid, by summing the individual deflections \
of each galaxy's mass profile.
The deflections are calculated on the sub-grid and binned-up to the original regular grid by taking ... | def deflections_of_galaxies_from_sub_grid(sub_grid, galaxies):
"""Compute the deflections of a list of galaxies from an input sub-grid, by summing the individual deflections \
of each galaxy's mass profile.
The deflections are calculated on the sub-grid and binned-up to the original regular grid by taking ... | [
"Compute",
"the",
"deflections",
"of",
"a",
"list",
"of",
"galaxies",
"from",
"an",
"input",
"sub",
"-",
"grid",
"by",
"summing",
"the",
"individual",
"deflections",
"\\",
"of",
"each",
"galaxy",
"s",
"mass",
"profile",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/galaxy/util/galaxy_util.py#L107-L127 | [
"def",
"deflections_of_galaxies_from_sub_grid",
"(",
"sub_grid",
",",
"galaxies",
")",
":",
"if",
"galaxies",
":",
"return",
"sum",
"(",
"map",
"(",
"lambda",
"galaxy",
":",
"galaxy",
".",
"deflections_from_grid",
"(",
"sub_grid",
")",
",",
"galaxies",
")",
")... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | blurred_image_1d_from_1d_unblurred_and_blurring_images | For a 1D masked image and 1D blurring image (the regions outside the mask whose light blurs \
into the mask after PSF convolution), use both to compute the blurred image within the mask via PSF convolution.
The convolution uses each image's convolver (*See ccd.convolution*).
Parameters
----------
... | autolens/lens/util/lens_fit_util.py | def blurred_image_1d_from_1d_unblurred_and_blurring_images(unblurred_image_1d, blurring_image_1d, convolver):
"""For a 1D masked image and 1D blurring image (the regions outside the mask whose light blurs \
into the mask after PSF convolution), use both to compute the blurred image within the mask via PSF convo... | def blurred_image_1d_from_1d_unblurred_and_blurring_images(unblurred_image_1d, blurring_image_1d, convolver):
"""For a 1D masked image and 1D blurring image (the regions outside the mask whose light blurs \
into the mask after PSF convolution), use both to compute the blurred image within the mask via PSF convo... | [
"For",
"a",
"1D",
"masked",
"image",
"and",
"1D",
"blurring",
"image",
"(",
"the",
"regions",
"outside",
"the",
"mask",
"whose",
"light",
"blurs",
"\\",
"into",
"the",
"mask",
"after",
"PSF",
"convolution",
")",
"use",
"both",
"to",
"compute",
"the",
"bl... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/util/lens_fit_util.py#L4-L19 | [
"def",
"blurred_image_1d_from_1d_unblurred_and_blurring_images",
"(",
"unblurred_image_1d",
",",
"blurring_image_1d",
",",
"convolver",
")",
":",
"return",
"convolver",
".",
"convolve_image",
"(",
"image_array",
"=",
"unblurred_image_1d",
",",
"blurring_array",
"=",
"blurri... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | evidence_from_inversion_terms | Compute the evidence of an inversion's fit to the datas, where the evidence includes a number of \
terms which quantify the complexity of an inversion's reconstruction (see the *inversion* module):
Likelihood = -0.5*[Chi_Squared_Term + Regularization_Term + Log(Covariance_Regularization_Term) -
... | autolens/lens/util/lens_fit_util.py | def evidence_from_inversion_terms(chi_squared, regularization_term, log_curvature_regularization_term,
log_regularization_term, noise_normalization):
"""Compute the evidence of an inversion's fit to the datas, where the evidence includes a number of \
terms which quantify the c... | def evidence_from_inversion_terms(chi_squared, regularization_term, log_curvature_regularization_term,
log_regularization_term, noise_normalization):
"""Compute the evidence of an inversion's fit to the datas, where the evidence includes a number of \
terms which quantify the c... | [
"Compute",
"the",
"evidence",
"of",
"an",
"inversion",
"s",
"fit",
"to",
"the",
"datas",
"where",
"the",
"evidence",
"includes",
"a",
"number",
"of",
"\\",
"terms",
"which",
"quantify",
"the",
"complexity",
"of",
"an",
"inversion",
"s",
"reconstruction",
"("... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/util/lens_fit_util.py#L43-L66 | [
"def",
"evidence_from_inversion_terms",
"(",
"chi_squared",
",",
"regularization_term",
",",
"log_curvature_regularization_term",
",",
"log_regularization_term",
",",
"noise_normalization",
")",
":",
"return",
"-",
"0.5",
"*",
"(",
"chi_squared",
"+",
"regularization_term",... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | blurred_image_of_planes_from_1d_images_and_convolver | For a tracer, extract the image-plane image of every plane and blur it with the PSF.
If none of the galaxies in a plane have a light profie or pixelization (and thus don't have an image) a *None* \
is used.
Parameters
----------
total_planes : int
The total number of planes that blurred im... | autolens/lens/util/lens_fit_util.py | def blurred_image_of_planes_from_1d_images_and_convolver(total_planes, image_plane_image_1d_of_planes,
image_plane_blurring_image_1d_of_planes, convolver,
map_to_scaled_array):
"""For a tracer, extract ... | def blurred_image_of_planes_from_1d_images_and_convolver(total_planes, image_plane_image_1d_of_planes,
image_plane_blurring_image_1d_of_planes, convolver,
map_to_scaled_array):
"""For a tracer, extract ... | [
"For",
"a",
"tracer",
"extract",
"the",
"image",
"-",
"plane",
"image",
"of",
"every",
"plane",
"and",
"blur",
"it",
"with",
"the",
"PSF",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/util/lens_fit_util.py#L69-L111 | [
"def",
"blurred_image_of_planes_from_1d_images_and_convolver",
"(",
"total_planes",
",",
"image_plane_image_1d_of_planes",
",",
"image_plane_blurring_image_1d_of_planes",
",",
"convolver",
",",
"map_to_scaled_array",
")",
":",
"blurred_image_of_planes",
"=",
"[",
"]",
"for",
"p... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | unmasked_blurred_image_of_planes_from_padded_grid_stack_and_psf | For lens data, compute the unmasked blurred image of every unmasked unblurred image of each plane. To do this, \
this function iterates over all planes to extract their unmasked unblurred images.
If a galaxy in a plane has a pixelization, the unmasked image is returned as None, as as the inversion's model \
... | autolens/lens/util/lens_fit_util.py | def unmasked_blurred_image_of_planes_from_padded_grid_stack_and_psf(planes, padded_grid_stack, psf):
"""For lens data, compute the unmasked blurred image of every unmasked unblurred image of each plane. To do this, \
this function iterates over all planes to extract their unmasked unblurred images.
If a ga... | def unmasked_blurred_image_of_planes_from_padded_grid_stack_and_psf(planes, padded_grid_stack, psf):
"""For lens data, compute the unmasked blurred image of every unmasked unblurred image of each plane. To do this, \
this function iterates over all planes to extract their unmasked unblurred images.
If a ga... | [
"For",
"lens",
"data",
"compute",
"the",
"unmasked",
"blurred",
"image",
"of",
"every",
"unmasked",
"unblurred",
"image",
"of",
"each",
"plane",
".",
"To",
"do",
"this",
"\\",
"this",
"function",
"iterates",
"over",
"all",
"planes",
"to",
"extract",
"their",... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/util/lens_fit_util.py#L114-L149 | [
"def",
"unmasked_blurred_image_of_planes_from_padded_grid_stack_and_psf",
"(",
"planes",
",",
"padded_grid_stack",
",",
"psf",
")",
":",
"unmasked_blurred_image_of_planes",
"=",
"[",
"]",
"for",
"plane",
"in",
"planes",
":",
"if",
"plane",
".",
"has_pixelization",
":",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | unmasked_blurred_image_of_planes_and_galaxies_from_padded_grid_stack_and_psf | For lens data, compute the unmasked blurred image of every unmasked unblurred image of every galaxy in each \
plane. To do this, this function iterates over all planes and then galaxies to extract their unmasked unblurred \
images.
If a galaxy in a plane has a pixelization, the unmasked image of that galax... | autolens/lens/util/lens_fit_util.py | def unmasked_blurred_image_of_planes_and_galaxies_from_padded_grid_stack_and_psf(planes, padded_grid_stack, psf):
"""For lens data, compute the unmasked blurred image of every unmasked unblurred image of every galaxy in each \
plane. To do this, this function iterates over all planes and then galaxies to extrac... | def unmasked_blurred_image_of_planes_and_galaxies_from_padded_grid_stack_and_psf(planes, padded_grid_stack, psf):
"""For lens data, compute the unmasked blurred image of every unmasked unblurred image of every galaxy in each \
plane. To do this, this function iterates over all planes and then galaxies to extrac... | [
"For",
"lens",
"data",
"compute",
"the",
"unmasked",
"blurred",
"image",
"of",
"every",
"unmasked",
"unblurred",
"image",
"of",
"every",
"galaxy",
"in",
"each",
"\\",
"plane",
".",
"To",
"do",
"this",
"this",
"function",
"iterates",
"over",
"all",
"planes",
... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/util/lens_fit_util.py#L152-L174 | [
"def",
"unmasked_blurred_image_of_planes_and_galaxies_from_padded_grid_stack_and_psf",
"(",
"planes",
",",
"padded_grid_stack",
",",
"psf",
")",
":",
"return",
"[",
"plane",
".",
"unmasked_blurred_image_of_galaxies_from_psf",
"(",
"padded_grid_stack",
",",
"psf",
")",
"for",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | contribution_maps_1d_from_hyper_images_and_galaxies | For a fitting hyper_galaxy_image, hyper_galaxy model image, list of hyper galaxies images and model hyper galaxies, compute
their contribution maps, which are used to compute a scaled-noise_map map. All quantities are masked 1D arrays.
The reason this is separate from the *contributions_from_fitting_hyper_imag... | autolens/lens/util/lens_fit_util.py | def contribution_maps_1d_from_hyper_images_and_galaxies(hyper_model_image_1d, hyper_galaxy_images_1d, hyper_galaxies,
hyper_minimum_values):
"""For a fitting hyper_galaxy_image, hyper_galaxy model image, list of hyper galaxies images and model hyper galaxies, ... | def contribution_maps_1d_from_hyper_images_and_galaxies(hyper_model_image_1d, hyper_galaxy_images_1d, hyper_galaxies,
hyper_minimum_values):
"""For a fitting hyper_galaxy_image, hyper_galaxy model image, list of hyper galaxies images and model hyper galaxies, ... | [
"For",
"a",
"fitting",
"hyper_galaxy_image",
"hyper_galaxy",
"model",
"image",
"list",
"of",
"hyper",
"galaxies",
"images",
"and",
"model",
"hyper",
"galaxies",
"compute",
"their",
"contribution",
"maps",
"which",
"are",
"used",
"to",
"compute",
"a",
"scaled",
"... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/util/lens_fit_util.py#L177-L204 | [
"def",
"contribution_maps_1d_from_hyper_images_and_galaxies",
"(",
"hyper_model_image_1d",
",",
"hyper_galaxy_images_1d",
",",
"hyper_galaxies",
",",
"hyper_minimum_values",
")",
":",
"# noinspection PyArgumentList",
"return",
"list",
"(",
"map",
"(",
"lambda",
"hyper_galaxy",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | scaled_noise_map_from_hyper_galaxies_and_contribution_maps | For a contribution map and noise-map, use the model hyper galaxies to compute a scaled noise-map.
Parameters
-----------
contribution_maps : ndarray
The image's list of 1D masked contribution maps (e.g. one for each hyper galaxy)
hyper_galaxies : [galaxy.Galaxy]
The hyper galaxies which... | autolens/lens/util/lens_fit_util.py | def scaled_noise_map_from_hyper_galaxies_and_contribution_maps(contribution_maps, hyper_galaxies, noise_map):
"""For a contribution map and noise-map, use the model hyper galaxies to compute a scaled noise-map.
Parameters
-----------
contribution_maps : ndarray
The image's list of 1D masked con... | def scaled_noise_map_from_hyper_galaxies_and_contribution_maps(contribution_maps, hyper_galaxies, noise_map):
"""For a contribution map and noise-map, use the model hyper galaxies to compute a scaled noise-map.
Parameters
-----------
contribution_maps : ndarray
The image's list of 1D masked con... | [
"For",
"a",
"contribution",
"map",
"and",
"noise",
"-",
"map",
"use",
"the",
"model",
"hyper",
"galaxies",
"to",
"compute",
"a",
"scaled",
"noise",
"-",
"map",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/util/lens_fit_util.py#L207-L225 | [
"def",
"scaled_noise_map_from_hyper_galaxies_and_contribution_maps",
"(",
"contribution_maps",
",",
"hyper_galaxies",
",",
"noise_map",
")",
":",
"scaled_noise_maps",
"=",
"list",
"(",
"map",
"(",
"lambda",
"hyper_galaxy",
",",
"contribution_map",
":",
"hyper_galaxy",
"."... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | rectangular_neighbors_from_shape | Compute the neighbors of every pixel as a list of the pixel index's each pixel shares a vertex with.
The uniformity of the rectangular grid's geometry is used to compute this. | autolens/model/inversion/util/pixelization_util.py | def rectangular_neighbors_from_shape(shape):
"""Compute the neighbors of every pixel as a list of the pixel index's each pixel shares a vertex with.
The uniformity of the rectangular grid's geometry is used to compute this.
"""
pixels = shape[0]*shape[1]
pixel_neighbors = -1 * np.ones(shape=(pix... | def rectangular_neighbors_from_shape(shape):
"""Compute the neighbors of every pixel as a list of the pixel index's each pixel shares a vertex with.
The uniformity of the rectangular grid's geometry is used to compute this.
"""
pixels = shape[0]*shape[1]
pixel_neighbors = -1 * np.ones(shape=(pix... | [
"Compute",
"the",
"neighbors",
"of",
"every",
"pixel",
"as",
"a",
"list",
"of",
"the",
"pixel",
"index",
"s",
"each",
"pixel",
"shares",
"a",
"vertex",
"with",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/inversion/util/pixelization_util.py#L5-L30 | [
"def",
"rectangular_neighbors_from_shape",
"(",
"shape",
")",
":",
"pixels",
"=",
"shape",
"[",
"0",
"]",
"*",
"shape",
"[",
"1",
"]",
"pixel_neighbors",
"=",
"-",
"1",
"*",
"np",
".",
"ones",
"(",
"shape",
"=",
"(",
"pixels",
",",
"4",
")",
")",
"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | voronoi_neighbors_from_pixels_and_ridge_points | Compute the neighbors of every pixel as a list of the pixel index's each pixel shares a vertex with.
The ridge points of the Voronoi grid are used to derive this.
Parameters
----------
ridge_points : scipy.spatial.Voronoi.ridge_points
Each Voronoi-ridge (two indexes representing a pixel mappin... | autolens/model/inversion/util/pixelization_util.py | def voronoi_neighbors_from_pixels_and_ridge_points(pixels, ridge_points):
"""Compute the neighbors of every pixel as a list of the pixel index's each pixel shares a vertex with.
The ridge points of the Voronoi grid are used to derive this.
Parameters
----------
ridge_points : scipy.spatial.Voronoi... | def voronoi_neighbors_from_pixels_and_ridge_points(pixels, ridge_points):
"""Compute the neighbors of every pixel as a list of the pixel index's each pixel shares a vertex with.
The ridge points of the Voronoi grid are used to derive this.
Parameters
----------
ridge_points : scipy.spatial.Voronoi... | [
"Compute",
"the",
"neighbors",
"of",
"every",
"pixel",
"as",
"a",
"list",
"of",
"the",
"pixel",
"index",
"s",
"each",
"pixel",
"shares",
"a",
"vertex",
"with",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/inversion/util/pixelization_util.py#L107-L137 | [
"def",
"voronoi_neighbors_from_pixels_and_ridge_points",
"(",
"pixels",
",",
"ridge_points",
")",
":",
"pixel_neighbors_size",
"=",
"np",
".",
"zeros",
"(",
"shape",
"=",
"(",
"pixels",
")",
")",
"for",
"ridge_index",
"in",
"range",
"(",
"ridge_points",
".",
"sh... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | LensDataFit.for_data_and_tracer | Fit lens data with a model tracer, automatically determining the type of fit based on the \
properties of the galaxies in the tracer.
Parameters
-----------
lens_data : lens_data.LensData or lens_data.LensDataHyper
The lens-images that is fitted.
tracer : ray_tracing... | autolens/lens/lens_fit.py | def for_data_and_tracer(cls, lens_data, tracer, padded_tracer=None):
"""Fit lens data with a model tracer, automatically determining the type of fit based on the \
properties of the galaxies in the tracer.
Parameters
-----------
lens_data : lens_data.LensData or lens_data.LensDa... | def for_data_and_tracer(cls, lens_data, tracer, padded_tracer=None):
"""Fit lens data with a model tracer, automatically determining the type of fit based on the \
properties of the galaxies in the tracer.
Parameters
-----------
lens_data : lens_data.LensData or lens_data.LensDa... | [
"Fit",
"lens",
"data",
"with",
"a",
"model",
"tracer",
"automatically",
"determining",
"the",
"type",
"of",
"fit",
"based",
"on",
"the",
"\\",
"properties",
"of",
"the",
"galaxies",
"in",
"the",
"tracer",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/lens_fit.py#L26-L49 | [
"def",
"for_data_and_tracer",
"(",
"cls",
",",
"lens_data",
",",
"tracer",
",",
"padded_tracer",
"=",
"None",
")",
":",
"if",
"tracer",
".",
"has_light_profile",
"and",
"not",
"tracer",
".",
"has_pixelization",
":",
"return",
"LensProfileFit",
"(",
"lens_data",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | transform_grid | Wrap the function in a function that checks whether the coordinates have been transformed. If they have not \
been transformed then they are transformed.
Parameters
----------
func : (profiles, *args, **kwargs) -> Object
A function that requires transformed coordinates
Returns
-------... | autolens/model/profiles/geometry_profiles.py | def transform_grid(func):
"""Wrap the function in a function that checks whether the coordinates have been transformed. If they have not \
been transformed then they are transformed.
Parameters
----------
func : (profiles, *args, **kwargs) -> Object
A function that requires transformed coo... | def transform_grid(func):
"""Wrap the function in a function that checks whether the coordinates have been transformed. If they have not \
been transformed then they are transformed.
Parameters
----------
func : (profiles, *args, **kwargs) -> Object
A function that requires transformed coo... | [
"Wrap",
"the",
"function",
"in",
"a",
"function",
"that",
"checks",
"whether",
"the",
"coordinates",
"have",
"been",
"transformed",
".",
"If",
"they",
"have",
"not",
"\\",
"been",
"transformed",
"then",
"they",
"are",
"transformed",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L9-L45 | [
"def",
"transform_grid",
"(",
"func",
")",
":",
"@",
"wraps",
"(",
"func",
")",
"def",
"wrapper",
"(",
"profile",
",",
"grid",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"\"\"\"\n\n Parameters\n ----------\n profile : GeometryProfile... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | cache | Caches results of a call to a grid function. If a grid that evaluates to the same byte value is passed into the same
function of the same instance as previously then the cached result is returned.
Parameters
----------
func
Some instance method that takes a grid as its argument
Returns
... | autolens/model/profiles/geometry_profiles.py | def cache(func):
"""
Caches results of a call to a grid function. If a grid that evaluates to the same byte value is passed into the same
function of the same instance as previously then the cached result is returned.
Parameters
----------
func
Some instance method that takes a grid as ... | def cache(func):
"""
Caches results of a call to a grid function. If a grid that evaluates to the same byte value is passed into the same
function of the same instance as previously then the cached result is returned.
Parameters
----------
func
Some instance method that takes a grid as ... | [
"Caches",
"results",
"of",
"a",
"call",
"to",
"a",
"grid",
"function",
".",
"If",
"a",
"grid",
"that",
"evaluates",
"to",
"the",
"same",
"byte",
"value",
"is",
"passed",
"into",
"the",
"same",
"function",
"of",
"the",
"same",
"instance",
"as",
"previousl... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L48-L72 | [
"def",
"cache",
"(",
"func",
")",
":",
"def",
"wrapper",
"(",
"instance",
":",
"GeometryProfile",
",",
"grid",
":",
"np",
".",
"ndarray",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"not",
"hasattr",
"(",
"instance",
",",
"\"cache\"",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | move_grid_to_radial_minimum | Checks whether any coordinates in the grid are radially near (0.0, 0.0), which can lead to numerical faults in \
the evaluation of a light or mass profiles. If any coordinates are radially within the the radial minimum \
threshold, their (y,x) coordinates are shifted to that value to ensure they are evaluated c... | autolens/model/profiles/geometry_profiles.py | def move_grid_to_radial_minimum(func):
""" Checks whether any coordinates in the grid are radially near (0.0, 0.0), which can lead to numerical faults in \
the evaluation of a light or mass profiles. If any coordinates are radially within the the radial minimum \
threshold, their (y,x) coordinates are shift... | def move_grid_to_radial_minimum(func):
""" Checks whether any coordinates in the grid are radially near (0.0, 0.0), which can lead to numerical faults in \
the evaluation of a light or mass profiles. If any coordinates are radially within the the radial minimum \
threshold, their (y,x) coordinates are shift... | [
"Checks",
"whether",
"any",
"coordinates",
"in",
"the",
"grid",
"are",
"radially",
"near",
"(",
"0",
".",
"0",
"0",
".",
"0",
")",
"which",
"can",
"lead",
"to",
"numerical",
"faults",
"in",
"\\",
"the",
"evaluation",
"of",
"a",
"light",
"or",
"mass",
... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L75-L119 | [
"def",
"move_grid_to_radial_minimum",
"(",
"func",
")",
":",
"@",
"wraps",
"(",
"func",
")",
"def",
"wrapper",
"(",
"profile",
",",
"grid",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"\"\"\"\n\n Parameters\n ----------\n profile : Sp... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalProfile.grid_to_grid_radii | Convert a grid of (y, x) coordinates to a grid of their circular radii.
If the coordinates have not been transformed to the profile's centre, this is performed automatically.
Parameters
----------
grid : TransformedGrid(ndarray)
The (y, x) coordinates in the reference frame... | autolens/model/profiles/geometry_profiles.py | def grid_to_grid_radii(self, grid):
"""Convert a grid of (y, x) coordinates to a grid of their circular radii.
If the coordinates have not been transformed to the profile's centre, this is performed automatically.
Parameters
----------
grid : TransformedGrid(ndarray)
... | def grid_to_grid_radii(self, grid):
"""Convert a grid of (y, x) coordinates to a grid of their circular radii.
If the coordinates have not been transformed to the profile's centre, this is performed automatically.
Parameters
----------
grid : TransformedGrid(ndarray)
... | [
"Convert",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"coordinates",
"to",
"a",
"grid",
"of",
"their",
"circular",
"radii",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L170-L180 | [
"def",
"grid_to_grid_radii",
"(",
"self",
",",
"grid",
")",
":",
"return",
"np",
".",
"sqrt",
"(",
"np",
".",
"add",
"(",
"np",
".",
"square",
"(",
"grid",
"[",
":",
",",
"0",
"]",
")",
",",
"np",
".",
"square",
"(",
"grid",
"[",
":",
",",
"1... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalProfile.grid_to_grid_cartesian | Convert a grid of (y,x) coordinates with their specified circular radii to their original (y,x) Cartesian
coordinates.
Parameters
----------
grid : TransformedGrid(ndarray)
The (y, x) coordinates in the reference frame of the profile.
radius : ndarray
Th... | autolens/model/profiles/geometry_profiles.py | def grid_to_grid_cartesian(self, grid, radius):
"""
Convert a grid of (y,x) coordinates with their specified circular radii to their original (y,x) Cartesian
coordinates.
Parameters
----------
grid : TransformedGrid(ndarray)
The (y, x) coordinates in the ref... | def grid_to_grid_cartesian(self, grid, radius):
"""
Convert a grid of (y,x) coordinates with their specified circular radii to their original (y,x) Cartesian
coordinates.
Parameters
----------
grid : TransformedGrid(ndarray)
The (y, x) coordinates in the ref... | [
"Convert",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"coordinates",
"with",
"their",
"specified",
"circular",
"radii",
"to",
"their",
"original",
"(",
"y",
"x",
")",
"Cartesian",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L192-L206 | [
"def",
"grid_to_grid_cartesian",
"(",
"self",
",",
"grid",
",",
"radius",
")",
":",
"grid_thetas",
"=",
"np",
".",
"arctan2",
"(",
"grid",
"[",
":",
",",
"0",
"]",
",",
"grid",
"[",
":",
",",
"1",
"]",
")",
"cos_theta",
",",
"sin_theta",
"=",
"self... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalProfile.transform_grid_to_reference_frame | Transform a grid of (y,x) coordinates to the reference frame of the profile, including a translation to \
its centre.
Parameters
----------
grid : ndarray
The (y, x) coordinates in the original reference frame of the grid. | autolens/model/profiles/geometry_profiles.py | def transform_grid_to_reference_frame(self, grid):
"""Transform a grid of (y,x) coordinates to the reference frame of the profile, including a translation to \
its centre.
Parameters
----------
grid : ndarray
The (y, x) coordinates in the original reference frame of ... | def transform_grid_to_reference_frame(self, grid):
"""Transform a grid of (y,x) coordinates to the reference frame of the profile, including a translation to \
its centre.
Parameters
----------
grid : ndarray
The (y, x) coordinates in the original reference frame of ... | [
"Transform",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"coordinates",
"to",
"the",
"reference",
"frame",
"of",
"the",
"profile",
"including",
"a",
"translation",
"to",
"\\",
"its",
"centre",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L208-L218 | [
"def",
"transform_grid_to_reference_frame",
"(",
"self",
",",
"grid",
")",
":",
"transformed",
"=",
"np",
".",
"subtract",
"(",
"grid",
",",
"self",
".",
"centre",
")",
"return",
"transformed",
".",
"view",
"(",
"TransformedGrid",
")"
] | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | SphericalProfile.transform_grid_from_reference_frame | Transform a grid of (y,x) coordinates from the reference frame of the profile to the original observer \
reference frame, including a translation from the profile's centre.
Parameters
----------
grid : TransformedGrid(ndarray)
The (y, x) coordinates in the reference frame of... | autolens/model/profiles/geometry_profiles.py | def transform_grid_from_reference_frame(self, grid):
"""Transform a grid of (y,x) coordinates from the reference frame of the profile to the original observer \
reference frame, including a translation from the profile's centre.
Parameters
----------
grid : TransformedGrid(ndarr... | def transform_grid_from_reference_frame(self, grid):
"""Transform a grid of (y,x) coordinates from the reference frame of the profile to the original observer \
reference frame, including a translation from the profile's centre.
Parameters
----------
grid : TransformedGrid(ndarr... | [
"Transform",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"coordinates",
"from",
"the",
"reference",
"frame",
"of",
"the",
"profile",
"to",
"the",
"original",
"observer",
"\\",
"reference",
"frame",
"including",
"a",
"translation",
"from",
"the",
"profile",
"s",
... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L220-L230 | [
"def",
"transform_grid_from_reference_frame",
"(",
"self",
",",
"grid",
")",
":",
"transformed",
"=",
"np",
".",
"add",
"(",
"grid",
",",
"self",
".",
"centre",
")",
"return",
"transformed",
".",
"view",
"(",
"TransformedGrid",
")"
] | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalProfile.cos_and_sin_from_x_axis | Determine the sin and cosine of the angle between the profile's ellipse and the positive x-axis, \
counter-clockwise. | autolens/model/profiles/geometry_profiles.py | def cos_and_sin_from_x_axis(self):
""" Determine the sin and cosine of the angle between the profile's ellipse and the positive x-axis, \
counter-clockwise. """
phi_radians = np.radians(self.phi)
return np.cos(phi_radians), np.sin(phi_radians) | def cos_and_sin_from_x_axis(self):
""" Determine the sin and cosine of the angle between the profile's ellipse and the positive x-axis, \
counter-clockwise. """
phi_radians = np.radians(self.phi)
return np.cos(phi_radians), np.sin(phi_radians) | [
"Determine",
"the",
"sin",
"and",
"cosine",
"of",
"the",
"angle",
"between",
"the",
"profile",
"s",
"ellipse",
"and",
"the",
"positive",
"x",
"-",
"axis",
"\\",
"counter",
"-",
"clockwise",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L268-L272 | [
"def",
"cos_and_sin_from_x_axis",
"(",
"self",
")",
":",
"phi_radians",
"=",
"np",
".",
"radians",
"(",
"self",
".",
"phi",
")",
"return",
"np",
".",
"cos",
"(",
"phi_radians",
")",
",",
"np",
".",
"sin",
"(",
"phi_radians",
")"
] | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalProfile.grid_angle_to_profile | The angle between each angle theta on the grid and the profile, in radians.
Parameters
-----------
grid_thetas : ndarray
The angle theta counter-clockwise from the positive x-axis to each coordinate in radians. | autolens/model/profiles/geometry_profiles.py | def grid_angle_to_profile(self, grid_thetas):
"""The angle between each angle theta on the grid and the profile, in radians.
Parameters
-----------
grid_thetas : ndarray
The angle theta counter-clockwise from the positive x-axis to each coordinate in radians.
"""
... | def grid_angle_to_profile(self, grid_thetas):
"""The angle between each angle theta on the grid and the profile, in radians.
Parameters
-----------
grid_thetas : ndarray
The angle theta counter-clockwise from the positive x-axis to each coordinate in radians.
"""
... | [
"The",
"angle",
"between",
"each",
"angle",
"theta",
"on",
"the",
"grid",
"and",
"the",
"profile",
"in",
"radians",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L274-L283 | [
"def",
"grid_angle_to_profile",
"(",
"self",
",",
"grid_thetas",
")",
":",
"theta_coordinate_to_profile",
"=",
"np",
".",
"add",
"(",
"grid_thetas",
",",
"-",
"self",
".",
"phi_radians",
")",
"return",
"np",
".",
"cos",
"(",
"theta_coordinate_to_profile",
")",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalProfile.rotate_grid_from_profile | Rotate a grid of elliptical (y,x) coordinates from the reference frame of the profile back to the \
unrotated coordinate grid reference frame (coordinates are not shifted back to their original centre).
This routine is used after computing deflection angles in the reference frame of the profile, so tha... | autolens/model/profiles/geometry_profiles.py | def rotate_grid_from_profile(self, grid_elliptical):
""" Rotate a grid of elliptical (y,x) coordinates from the reference frame of the profile back to the \
unrotated coordinate grid reference frame (coordinates are not shifted back to their original centre).
This routine is used after computin... | def rotate_grid_from_profile(self, grid_elliptical):
""" Rotate a grid of elliptical (y,x) coordinates from the reference frame of the profile back to the \
unrotated coordinate grid reference frame (coordinates are not shifted back to their original centre).
This routine is used after computin... | [
"Rotate",
"a",
"grid",
"of",
"elliptical",
"(",
"y",
"x",
")",
"coordinates",
"from",
"the",
"reference",
"frame",
"of",
"the",
"profile",
"back",
"to",
"the",
"\\",
"unrotated",
"coordinate",
"grid",
"reference",
"frame",
"(",
"coordinates",
"are",
"not",
... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L285-L299 | [
"def",
"rotate_grid_from_profile",
"(",
"self",
",",
"grid_elliptical",
")",
":",
"y",
"=",
"np",
".",
"add",
"(",
"np",
".",
"multiply",
"(",
"grid_elliptical",
"[",
":",
",",
"1",
"]",
",",
"self",
".",
"sin_phi",
")",
",",
"np",
".",
"multiply",
"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalProfile.grid_to_elliptical_radii | Convert a grid of (y,x) coordinates to an elliptical radius.
If the coordinates have not been transformed to the profile's geometry, this is performed automatically.
Parameters
----------
grid : TransformedGrid(ndarray)
The (y, x) coordinates in the reference frame of the e... | autolens/model/profiles/geometry_profiles.py | def grid_to_elliptical_radii(self, grid):
""" Convert a grid of (y,x) coordinates to an elliptical radius.
If the coordinates have not been transformed to the profile's geometry, this is performed automatically.
Parameters
----------
grid : TransformedGrid(ndarray)
... | def grid_to_elliptical_radii(self, grid):
""" Convert a grid of (y,x) coordinates to an elliptical radius.
If the coordinates have not been transformed to the profile's geometry, this is performed automatically.
Parameters
----------
grid : TransformedGrid(ndarray)
... | [
"Convert",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"coordinates",
"to",
"an",
"elliptical",
"radius",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L303-L313 | [
"def",
"grid_to_elliptical_radii",
"(",
"self",
",",
"grid",
")",
":",
"return",
"np",
".",
"sqrt",
"(",
"np",
".",
"add",
"(",
"np",
".",
"square",
"(",
"grid",
"[",
":",
",",
"1",
"]",
")",
",",
"np",
".",
"square",
"(",
"np",
".",
"divide",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalProfile.grid_to_eccentric_radii | Convert a grid of (y,x) coordinates to an eccentric radius, which is (1.0/axis_ratio) * elliptical radius \
and used to define light profile half-light radii using circular radii.
If the coordinates have not been transformed to the profile's geometry, this is performed automatically.
Parameter... | autolens/model/profiles/geometry_profiles.py | def grid_to_eccentric_radii(self, grid):
"""Convert a grid of (y,x) coordinates to an eccentric radius, which is (1.0/axis_ratio) * elliptical radius \
and used to define light profile half-light radii using circular radii.
If the coordinates have not been transformed to the profile's geometry,... | def grid_to_eccentric_radii(self, grid):
"""Convert a grid of (y,x) coordinates to an eccentric radius, which is (1.0/axis_ratio) * elliptical radius \
and used to define light profile half-light radii using circular radii.
If the coordinates have not been transformed to the profile's geometry,... | [
"Convert",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"coordinates",
"to",
"an",
"eccentric",
"radius",
"which",
"is",
"(",
"1",
".",
"0",
"/",
"axis_ratio",
")",
"*",
"elliptical",
"radius",
"\\",
"and",
"used",
"to",
"define",
"light",
"profile",
"half",... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L317-L328 | [
"def",
"grid_to_eccentric_radii",
"(",
"self",
",",
"grid",
")",
":",
"return",
"np",
".",
"multiply",
"(",
"np",
".",
"sqrt",
"(",
"self",
".",
"axis_ratio",
")",
",",
"self",
".",
"grid_to_elliptical_radii",
"(",
"grid",
")",
")",
".",
"view",
"(",
"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalProfile.transform_grid_to_reference_frame | Transform a grid of (y,x) coordinates to the reference frame of the profile, including a translation to \
its centre and a rotation to it orientation.
Parameters
----------
grid : ndarray
The (y, x) coordinates in the original reference frame of the grid. | autolens/model/profiles/geometry_profiles.py | def transform_grid_to_reference_frame(self, grid):
"""Transform a grid of (y,x) coordinates to the reference frame of the profile, including a translation to \
its centre and a rotation to it orientation.
Parameters
----------
grid : ndarray
The (y, x) coordinates in... | def transform_grid_to_reference_frame(self, grid):
"""Transform a grid of (y,x) coordinates to the reference frame of the profile, including a translation to \
its centre and a rotation to it orientation.
Parameters
----------
grid : ndarray
The (y, x) coordinates in... | [
"Transform",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"coordinates",
"to",
"the",
"reference",
"frame",
"of",
"the",
"profile",
"including",
"a",
"translation",
"to",
"\\",
"its",
"centre",
"and",
"a",
"rotation",
"to",
"it",
"orientation",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L330-L347 | [
"def",
"transform_grid_to_reference_frame",
"(",
"self",
",",
"grid",
")",
":",
"if",
"self",
".",
"__class__",
".",
"__name__",
".",
"startswith",
"(",
"\"Spherical\"",
")",
":",
"return",
"super",
"(",
")",
".",
"transform_grid_to_reference_frame",
"(",
"grid"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalProfile.transform_grid_from_reference_frame | Transform a grid of (y,x) coordinates from the reference frame of the profile to the original observer \
reference frame, including a rotation to its original orientation and a translation from the profile's centre.
Parameters
----------
grid : TransformedGrid(ndarray)
The (... | autolens/model/profiles/geometry_profiles.py | def transform_grid_from_reference_frame(self, grid):
"""Transform a grid of (y,x) coordinates from the reference frame of the profile to the original observer \
reference frame, including a rotation to its original orientation and a translation from the profile's centre.
Parameters
----... | def transform_grid_from_reference_frame(self, grid):
"""Transform a grid of (y,x) coordinates from the reference frame of the profile to the original observer \
reference frame, including a rotation to its original orientation and a translation from the profile's centre.
Parameters
----... | [
"Transform",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"coordinates",
"from",
"the",
"reference",
"frame",
"of",
"the",
"profile",
"to",
"the",
"original",
"observer",
"\\",
"reference",
"frame",
"including",
"a",
"rotation",
"to",
"its",
"original",
"orientati... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/geometry_profiles.py#L349-L364 | [
"def",
"transform_grid_from_reference_frame",
"(",
"self",
",",
"grid",
")",
":",
"if",
"self",
".",
"__class__",
".",
"__name__",
".",
"startswith",
"(",
"\"Spherical\"",
")",
":",
"return",
"super",
"(",
")",
".",
"transform_grid_from_reference_frame",
"(",
"g... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | mapping_matrix_from_sub_to_pix | Computes the mapping matrix, by iterating over the known mappings between the sub-grid and pixelization.
Parameters
-----------
sub_to_pix : ndarray
The mappings between the observed regular's sub-pixels and pixelization's pixels.
pixels : int
The number of pixels in the pixelization.
... | autolens/model/inversion/util/mapper_util.py | def mapping_matrix_from_sub_to_pix(sub_to_pix, pixels, regular_pixels, sub_to_regular, sub_grid_fraction):
"""Computes the mapping matrix, by iterating over the known mappings between the sub-grid and pixelization.
Parameters
-----------
sub_to_pix : ndarray
The mappings between the observed re... | def mapping_matrix_from_sub_to_pix(sub_to_pix, pixels, regular_pixels, sub_to_regular, sub_grid_fraction):
"""Computes the mapping matrix, by iterating over the known mappings between the sub-grid and pixelization.
Parameters
-----------
sub_to_pix : ndarray
The mappings between the observed re... | [
"Computes",
"the",
"mapping",
"matrix",
"by",
"iterating",
"over",
"the",
"known",
"mappings",
"between",
"the",
"sub",
"-",
"grid",
"and",
"pixelization",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/inversion/util/mapper_util.py#L5-L27 | [
"def",
"mapping_matrix_from_sub_to_pix",
"(",
"sub_to_pix",
",",
"pixels",
",",
"regular_pixels",
",",
"sub_to_regular",
",",
"sub_grid_fraction",
")",
":",
"mapping_matrix",
"=",
"np",
".",
"zeros",
"(",
"(",
"regular_pixels",
",",
"pixels",
")",
")",
"for",
"s... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | voronoi_regular_to_pix_from_grids_and_geometry | Compute the mappings between a set of regular-grid pixels and pixelization pixels, using information on \
how regular pixels map to their closest pixelization pixel on the image-plane pix-grid and the pixelization's \
pixel centres.
To determine the complete set of regular-pixel to pixelization pixel mappi... | autolens/model/inversion/util/mapper_util.py | def voronoi_regular_to_pix_from_grids_and_geometry(regular_grid, regular_to_nearest_pix, pixel_centres,
pixel_neighbors, pixel_neighbors_size):
""" Compute the mappings between a set of regular-grid pixels and pixelization pixels, using information on \
how reg... | def voronoi_regular_to_pix_from_grids_and_geometry(regular_grid, regular_to_nearest_pix, pixel_centres,
pixel_neighbors, pixel_neighbors_size):
""" Compute the mappings between a set of regular-grid pixels and pixelization pixels, using information on \
how reg... | [
"Compute",
"the",
"mappings",
"between",
"a",
"set",
"of",
"regular",
"-",
"grid",
"pixels",
"and",
"pixelization",
"pixels",
"using",
"information",
"on",
"\\",
"how",
"regular",
"pixels",
"map",
"to",
"their",
"closest",
"pixelization",
"pixel",
"on",
"the",... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/inversion/util/mapper_util.py#L30-L94 | [
"def",
"voronoi_regular_to_pix_from_grids_and_geometry",
"(",
"regular_grid",
",",
"regular_to_nearest_pix",
",",
"pixel_centres",
",",
"pixel_neighbors",
",",
"pixel_neighbors_size",
")",
":",
"regular_to_pix",
"=",
"np",
".",
"zeros",
"(",
"(",
"regular_grid",
".",
"s... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | voronoi_sub_to_pix_from_grids_and_geometry | Compute the mappings between a set of sub-grid pixels and pixelization pixels, using information on \
how the regular pixels hosting each sub-pixel map to their closest pixelization pixel on the image-plane pix-grid \
and the pixelization's pixel centres.
To determine the complete set of sub-pixel to pixel... | autolens/model/inversion/util/mapper_util.py | def voronoi_sub_to_pix_from_grids_and_geometry(sub_grid, regular_to_nearest_pix, sub_to_regular, pixel_centres,
pixel_neighbors, pixel_neighbors_size):
""" Compute the mappings between a set of sub-grid pixels and pixelization pixels, using information on \
how the... | def voronoi_sub_to_pix_from_grids_and_geometry(sub_grid, regular_to_nearest_pix, sub_to_regular, pixel_centres,
pixel_neighbors, pixel_neighbors_size):
""" Compute the mappings between a set of sub-grid pixels and pixelization pixels, using information on \
how the... | [
"Compute",
"the",
"mappings",
"between",
"a",
"set",
"of",
"sub",
"-",
"grid",
"pixels",
"and",
"pixelization",
"pixels",
"using",
"information",
"on",
"\\",
"how",
"the",
"regular",
"pixels",
"hosting",
"each",
"sub",
"-",
"pixel",
"map",
"to",
"their",
"... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/inversion/util/mapper_util.py#L97-L160 | [
"def",
"voronoi_sub_to_pix_from_grids_and_geometry",
"(",
"sub_grid",
",",
"regular_to_nearest_pix",
",",
"sub_to_regular",
",",
"pixel_centres",
",",
"pixel_neighbors",
",",
"pixel_neighbors_size",
")",
":",
"sub_to_pix",
"=",
"np",
".",
"zeros",
"(",
"(",
"sub_grid",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalLightProfile.luminosity_within_circle_in_units | Integrate the light profile to compute the total luminosity within a circle of specified radius. This is \
centred on the light profile's centre.
The following units for mass can be specified and output:
- Electrons per second (default) - 'eps'.
- Counts - 'counts' (multiplies the lumi... | autolens/model/profiles/light_profiles.py | def luminosity_within_circle_in_units(self, radius: dim.Length, unit_luminosity='eps', kpc_per_arcsec=None,
exposure_time=None):
"""Integrate the light profile to compute the total luminosity within a circle of specified radius. This is \
centred on the light pr... | def luminosity_within_circle_in_units(self, radius: dim.Length, unit_luminosity='eps', kpc_per_arcsec=None,
exposure_time=None):
"""Integrate the light profile to compute the total luminosity within a circle of specified radius. This is \
centred on the light pr... | [
"Integrate",
"the",
"light",
"profile",
"to",
"compute",
"the",
"total",
"luminosity",
"within",
"a",
"circle",
"of",
"specified",
"radius",
".",
"This",
"is",
"\\",
"centred",
"on",
"the",
"light",
"profile",
"s",
"centre",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/light_profiles.py#L68-L95 | [
"def",
"luminosity_within_circle_in_units",
"(",
"self",
",",
"radius",
":",
"dim",
".",
"Length",
",",
"unit_luminosity",
"=",
"'eps'",
",",
"kpc_per_arcsec",
"=",
"None",
",",
"exposure_time",
"=",
"None",
")",
":",
"if",
"not",
"isinstance",
"(",
"radius",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalLightProfile.luminosity_within_ellipse_in_units | Integrate the light profiles to compute the total luminosity within an ellipse of specified major axis. \
This is centred on the light profile's centre.
The following units for mass can be specified and output:
- Electrons per second (default) - 'eps'.
- Counts - 'counts' (multiplies t... | autolens/model/profiles/light_profiles.py | def luminosity_within_ellipse_in_units(self, major_axis, unit_luminosity='eps', kpc_per_arcsec=None,
exposure_time=None):
"""Integrate the light profiles to compute the total luminosity within an ellipse of specified major axis. \
This is centred on the light p... | def luminosity_within_ellipse_in_units(self, major_axis, unit_luminosity='eps', kpc_per_arcsec=None,
exposure_time=None):
"""Integrate the light profiles to compute the total luminosity within an ellipse of specified major axis. \
This is centred on the light p... | [
"Integrate",
"the",
"light",
"profiles",
"to",
"compute",
"the",
"total",
"luminosity",
"within",
"an",
"ellipse",
"of",
"specified",
"major",
"axis",
".",
"\\",
"This",
"is",
"centred",
"on",
"the",
"light",
"profile",
"s",
"centre",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/light_profiles.py#L97-L124 | [
"def",
"luminosity_within_ellipse_in_units",
"(",
"self",
",",
"major_axis",
",",
"unit_luminosity",
"=",
"'eps'",
",",
"kpc_per_arcsec",
"=",
"None",
",",
"exposure_time",
"=",
"None",
")",
":",
"if",
"not",
"isinstance",
"(",
"major_axis",
",",
"dim",
".",
"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalLightProfile.luminosity_integral | Routine to integrate the luminosity of an elliptical light profile.
The axis ratio is set to 1.0 for computing the luminosity within a circle | autolens/model/profiles/light_profiles.py | def luminosity_integral(self, x, axis_ratio):
"""Routine to integrate the luminosity of an elliptical light profile.
The axis ratio is set to 1.0 for computing the luminosity within a circle"""
r = x * axis_ratio
return 2 * np.pi * r * self.intensities_from_grid_radii(x) | def luminosity_integral(self, x, axis_ratio):
"""Routine to integrate the luminosity of an elliptical light profile.
The axis ratio is set to 1.0 for computing the luminosity within a circle"""
r = x * axis_ratio
return 2 * np.pi * r * self.intensities_from_grid_radii(x) | [
"Routine",
"to",
"integrate",
"the",
"luminosity",
"of",
"an",
"elliptical",
"light",
"profile",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/light_profiles.py#L126-L131 | [
"def",
"luminosity_integral",
"(",
"self",
",",
"x",
",",
"axis_ratio",
")",
":",
"r",
"=",
"x",
"*",
"axis_ratio",
"return",
"2",
"*",
"np",
".",
"pi",
"*",
"r",
"*",
"self",
".",
"intensities_from_grid_radii",
"(",
"x",
")"
] | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalGaussian.intensities_from_grid_radii | Calculate the intensity of the Gaussian light profile on a grid of radial coordinates.
Parameters
----------
grid_radii : float
The radial distance from the centre of the profile. for each coordinate on the grid. | autolens/model/profiles/light_profiles.py | def intensities_from_grid_radii(self, grid_radii):
"""Calculate the intensity of the Gaussian light profile on a grid of radial coordinates.
Parameters
----------
grid_radii : float
The radial distance from the centre of the profile. for each coordinate on the grid.
... | def intensities_from_grid_radii(self, grid_radii):
"""Calculate the intensity of the Gaussian light profile on a grid of radial coordinates.
Parameters
----------
grid_radii : float
The radial distance from the centre of the profile. for each coordinate on the grid.
... | [
"Calculate",
"the",
"intensity",
"of",
"the",
"Gaussian",
"light",
"profile",
"on",
"a",
"grid",
"of",
"radial",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/light_profiles.py#L163-L172 | [
"def",
"intensities_from_grid_radii",
"(",
"self",
",",
"grid_radii",
")",
":",
"return",
"np",
".",
"multiply",
"(",
"np",
".",
"divide",
"(",
"self",
".",
"intensity",
",",
"self",
".",
"sigma",
"*",
"np",
".",
"sqrt",
"(",
"2.0",
"*",
"np",
".",
"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalSersic.intensities_from_grid_radii | Calculate the intensity of the Sersic light profile on a grid of radial coordinates.
Parameters
----------
grid_radii : float
The radial distance from the centre of the profile. for each coordinate on the grid. | autolens/model/profiles/light_profiles.py | def intensities_from_grid_radii(self, grid_radii):
"""
Calculate the intensity of the Sersic light profile on a grid of radial coordinates.
Parameters
----------
grid_radii : float
The radial distance from the centre of the profile. for each coordinate on the grid.
... | def intensities_from_grid_radii(self, grid_radii):
"""
Calculate the intensity of the Sersic light profile on a grid of radial coordinates.
Parameters
----------
grid_radii : float
The radial distance from the centre of the profile. for each coordinate on the grid.
... | [
"Calculate",
"the",
"intensity",
"of",
"the",
"Sersic",
"light",
"profile",
"on",
"a",
"grid",
"of",
"radial",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/light_profiles.py#L315-L327 | [
"def",
"intensities_from_grid_radii",
"(",
"self",
",",
"grid_radii",
")",
":",
"np",
".",
"seterr",
"(",
"all",
"=",
"'ignore'",
")",
"return",
"np",
".",
"multiply",
"(",
"self",
".",
"intensity",
",",
"np",
".",
"exp",
"(",
"np",
".",
"multiply",
"(... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalCoreSersic.intensity_prime | Overall intensity normalisation in the rescaled Core-Sersic light profiles (electrons per second) | autolens/model/profiles/light_profiles.py | def intensity_prime(self):
"""Overall intensity normalisation in the rescaled Core-Sersic light profiles (electrons per second)"""
return self.intensity_break * (2.0 ** (-self.gamma / self.alpha)) * np.exp(
self.sersic_constant * (((2.0 ** (1.0 / self.alpha)) * self.radius_break) / self.effe... | def intensity_prime(self):
"""Overall intensity normalisation in the rescaled Core-Sersic light profiles (electrons per second)"""
return self.intensity_break * (2.0 ** (-self.gamma / self.alpha)) * np.exp(
self.sersic_constant * (((2.0 ** (1.0 / self.alpha)) * self.radius_break) / self.effe... | [
"Overall",
"intensity",
"normalisation",
"in",
"the",
"rescaled",
"Core",
"-",
"Sersic",
"light",
"profiles",
"(",
"electrons",
"per",
"second",
")"
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/light_profiles.py#L534-L538 | [
"def",
"intensity_prime",
"(",
"self",
")",
":",
"return",
"self",
".",
"intensity_break",
"*",
"(",
"2.0",
"**",
"(",
"-",
"self",
".",
"gamma",
"/",
"self",
".",
"alpha",
")",
")",
"*",
"np",
".",
"exp",
"(",
"self",
".",
"sersic_constant",
"*",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | EllipticalCoreSersic.intensities_from_grid_radii | Calculate the intensity of the cored-Sersic light profile on a grid of radial coordinates.
Parameters
----------
grid_radii : float
The radial distance from the centre of the profile. for each coordinate on the grid. | autolens/model/profiles/light_profiles.py | def intensities_from_grid_radii(self, grid_radii):
"""Calculate the intensity of the cored-Sersic light profile on a grid of radial coordinates.
Parameters
----------
grid_radii : float
The radial distance from the centre of the profile. for each coordinate on the grid.
... | def intensities_from_grid_radii(self, grid_radii):
"""Calculate the intensity of the cored-Sersic light profile on a grid of radial coordinates.
Parameters
----------
grid_radii : float
The radial distance from the centre of the profile. for each coordinate on the grid.
... | [
"Calculate",
"the",
"intensity",
"of",
"the",
"cored",
"-",
"Sersic",
"light",
"profile",
"on",
"a",
"grid",
"of",
"radial",
"coordinates",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/model/profiles/light_profiles.py#L540-L554 | [
"def",
"intensities_from_grid_radii",
"(",
"self",
",",
"grid_radii",
")",
":",
"return",
"np",
".",
"multiply",
"(",
"np",
".",
"multiply",
"(",
"self",
".",
"intensity_prime",
",",
"np",
".",
"power",
"(",
"np",
".",
"add",
"(",
"1",
",",
"np",
".",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | AbstractPlane.luminosities_of_galaxies_within_circles_in_units | Compute the total luminosity of all galaxies in this plane within a circle of specified radius.
See *galaxy.light_within_circle* and *light_profiles.light_within_circle* for details \
of how this is performed.
Parameters
----------
radius : float
The radius of the c... | autolens/lens/plane.py | def luminosities_of_galaxies_within_circles_in_units(self, radius : dim.Length, unit_luminosity='eps', exposure_time=None):
"""Compute the total luminosity of all galaxies in this plane within a circle of specified radius.
See *galaxy.light_within_circle* and *light_profiles.light_within_circle* for de... | def luminosities_of_galaxies_within_circles_in_units(self, radius : dim.Length, unit_luminosity='eps', exposure_time=None):
"""Compute the total luminosity of all galaxies in this plane within a circle of specified radius.
See *galaxy.light_within_circle* and *light_profiles.light_within_circle* for de... | [
"Compute",
"the",
"total",
"luminosity",
"of",
"all",
"galaxies",
"in",
"this",
"plane",
"within",
"a",
"circle",
"of",
"specified",
"radius",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/plane.py#L137-L155 | [
"def",
"luminosities_of_galaxies_within_circles_in_units",
"(",
"self",
",",
"radius",
":",
"dim",
".",
"Length",
",",
"unit_luminosity",
"=",
"'eps'",
",",
"exposure_time",
"=",
"None",
")",
":",
"return",
"list",
"(",
"map",
"(",
"lambda",
"galaxy",
":",
"ga... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | AbstractPlane.luminosities_of_galaxies_within_ellipses_in_units | Compute the total luminosity of all galaxies in this plane within a ellipse of specified major-axis.
The value returned by this integral is dimensionless, and a conversion factor can be specified to convert it \
to a physical value (e.g. the photometric zeropoint).
See *galaxy.light_within_ell... | autolens/lens/plane.py | def luminosities_of_galaxies_within_ellipses_in_units(self, major_axis : dim.Length, unit_luminosity='eps',
exposure_time=None):
"""
Compute the total luminosity of all galaxies in this plane within a ellipse of specified major-axis.
The... | def luminosities_of_galaxies_within_ellipses_in_units(self, major_axis : dim.Length, unit_luminosity='eps',
exposure_time=None):
"""
Compute the total luminosity of all galaxies in this plane within a ellipse of specified major-axis.
The... | [
"Compute",
"the",
"total",
"luminosity",
"of",
"all",
"galaxies",
"in",
"this",
"plane",
"within",
"a",
"ellipse",
"of",
"specified",
"major",
"-",
"axis",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/plane.py#L157-L180 | [
"def",
"luminosities_of_galaxies_within_ellipses_in_units",
"(",
"self",
",",
"major_axis",
":",
"dim",
".",
"Length",
",",
"unit_luminosity",
"=",
"'eps'",
",",
"exposure_time",
"=",
"None",
")",
":",
"return",
"list",
"(",
"map",
"(",
"lambda",
"galaxy",
":",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | AbstractPlane.masses_of_galaxies_within_circles_in_units | Compute the total mass of all galaxies in this plane within a circle of specified radius.
See *galaxy.angular_mass_within_circle* and *mass_profiles.angular_mass_within_circle* for details
of how this is performed.
Parameters
----------
radius : float
The radius of ... | autolens/lens/plane.py | def masses_of_galaxies_within_circles_in_units(self, radius : dim.Length, unit_mass='angular',
critical_surface_density=None):
"""Compute the total mass of all galaxies in this plane within a circle of specified radius.
See *galaxy.angular_mass_within_... | def masses_of_galaxies_within_circles_in_units(self, radius : dim.Length, unit_mass='angular',
critical_surface_density=None):
"""Compute the total mass of all galaxies in this plane within a circle of specified radius.
See *galaxy.angular_mass_within_... | [
"Compute",
"the",
"total",
"mass",
"of",
"all",
"galaxies",
"in",
"this",
"plane",
"within",
"a",
"circle",
"of",
"specified",
"radius",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/plane.py#L182-L202 | [
"def",
"masses_of_galaxies_within_circles_in_units",
"(",
"self",
",",
"radius",
":",
"dim",
".",
"Length",
",",
"unit_mass",
"=",
"'angular'",
",",
"critical_surface_density",
"=",
"None",
")",
":",
"return",
"list",
"(",
"map",
"(",
"lambda",
"galaxy",
":",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | AbstractPlane.masses_of_galaxies_within_ellipses_in_units | Compute the total mass of all galaxies in this plane within a ellipse of specified major-axis.
See *galaxy.angular_mass_within_ellipse* and *mass_profiles.angular_mass_within_ellipse* for details \
of how this is performed.
Parameters
----------
major_axis : float
T... | autolens/lens/plane.py | def masses_of_galaxies_within_ellipses_in_units(self, major_axis : dim.Length, unit_mass='angular',
critical_surface_density=None):
"""Compute the total mass of all galaxies in this plane within a ellipse of specified major-axis.
See *galaxy.angular_m... | def masses_of_galaxies_within_ellipses_in_units(self, major_axis : dim.Length, unit_mass='angular',
critical_surface_density=None):
"""Compute the total mass of all galaxies in this plane within a ellipse of specified major-axis.
See *galaxy.angular_m... | [
"Compute",
"the",
"total",
"mass",
"of",
"all",
"galaxies",
"in",
"this",
"plane",
"within",
"a",
"ellipse",
"of",
"specified",
"major",
"-",
"axis",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/plane.py#L204-L223 | [
"def",
"masses_of_galaxies_within_ellipses_in_units",
"(",
"self",
",",
"major_axis",
":",
"dim",
".",
"Length",
",",
"unit_mass",
"=",
"'angular'",
",",
"critical_surface_density",
"=",
"None",
")",
":",
"return",
"list",
"(",
"map",
"(",
"lambda",
"galaxy",
":... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | AbstractGriddedPlane.trace_grid_stack_to_next_plane | Trace this plane's grid_stacks to the next plane, using its deflection angles. | autolens/lens/plane.py | def trace_grid_stack_to_next_plane(self):
"""Trace this plane's grid_stacks to the next plane, using its deflection angles."""
def minus(grid, deflections):
return grid - deflections
return self.grid_stack.map_function(minus, self.deflection_stack) | def trace_grid_stack_to_next_plane(self):
"""Trace this plane's grid_stacks to the next plane, using its deflection angles."""
def minus(grid, deflections):
return grid - deflections
return self.grid_stack.map_function(minus, self.deflection_stack) | [
"Trace",
"this",
"plane",
"s",
"grid_stacks",
"to",
"the",
"next",
"plane",
"using",
"its",
"deflection",
"angles",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/plane.py#L287-L293 | [
"def",
"trace_grid_stack_to_next_plane",
"(",
"self",
")",
":",
"def",
"minus",
"(",
"grid",
",",
"deflections",
")",
":",
"return",
"grid",
"-",
"deflections",
"return",
"self",
".",
"grid_stack",
".",
"map_function",
"(",
"minus",
",",
"self",
".",
"deflec... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | AbstractGriddedPlane.yticks | Compute the yticks labels of this grid_stack, used for plotting the y-axis ticks when visualizing an image \ | autolens/lens/plane.py | def yticks(self):
"""Compute the yticks labels of this grid_stack, used for plotting the y-axis ticks when visualizing an image \
"""
return np.linspace(np.amin(self.grid_stack.regular[:, 0]), np.amax(self.grid_stack.regular[:, 0]), 4) | def yticks(self):
"""Compute the yticks labels of this grid_stack, used for plotting the y-axis ticks when visualizing an image \
"""
return np.linspace(np.amin(self.grid_stack.regular[:, 0]), np.amax(self.grid_stack.regular[:, 0]), 4) | [
"Compute",
"the",
"yticks",
"labels",
"of",
"this",
"grid_stack",
"used",
"for",
"plotting",
"the",
"y",
"-",
"axis",
"ticks",
"when",
"visualizing",
"an",
"image",
"\\"
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/plane.py#L371-L374 | [
"def",
"yticks",
"(",
"self",
")",
":",
"return",
"np",
".",
"linspace",
"(",
"np",
".",
"amin",
"(",
"self",
".",
"grid_stack",
".",
"regular",
"[",
":",
",",
"0",
"]",
")",
",",
"np",
".",
"amax",
"(",
"self",
".",
"grid_stack",
".",
"regular",... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | AbstractGriddedPlane.xticks | Compute the xticks labels of this grid_stack, used for plotting the x-axis ticks when visualizing an \
image | autolens/lens/plane.py | def xticks(self):
"""Compute the xticks labels of this grid_stack, used for plotting the x-axis ticks when visualizing an \
image"""
return np.linspace(np.amin(self.grid_stack.regular[:, 1]), np.amax(self.grid_stack.regular[:, 1]), 4) | def xticks(self):
"""Compute the xticks labels of this grid_stack, used for plotting the x-axis ticks when visualizing an \
image"""
return np.linspace(np.amin(self.grid_stack.regular[:, 1]), np.amax(self.grid_stack.regular[:, 1]), 4) | [
"Compute",
"the",
"xticks",
"labels",
"of",
"this",
"grid_stack",
"used",
"for",
"plotting",
"the",
"x",
"-",
"axis",
"ticks",
"when",
"visualizing",
"an",
"\\",
"image"
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/plane.py#L377-L380 | [
"def",
"xticks",
"(",
"self",
")",
":",
"return",
"np",
".",
"linspace",
"(",
"np",
".",
"amin",
"(",
"self",
".",
"grid_stack",
".",
"regular",
"[",
":",
",",
"1",
"]",
")",
",",
"np",
".",
"amax",
"(",
"self",
".",
"grid_stack",
".",
"regular",... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Plane.unmasked_blurred_image_of_galaxies_from_psf | This is a utility function for the function above, which performs the iteration over each plane's galaxies \
and computes each galaxy's unmasked blurred image.
Parameters
----------
padded_grid_stack
psf : ccd.PSF
The PSF of the image used for convolution. | autolens/lens/plane.py | def unmasked_blurred_image_of_galaxies_from_psf(self, padded_grid_stack, psf):
"""This is a utility function for the function above, which performs the iteration over each plane's galaxies \
and computes each galaxy's unmasked blurred image.
Parameters
----------
padded_grid_sta... | def unmasked_blurred_image_of_galaxies_from_psf(self, padded_grid_stack, psf):
"""This is a utility function for the function above, which performs the iteration over each plane's galaxies \
and computes each galaxy's unmasked blurred image.
Parameters
----------
padded_grid_sta... | [
"This",
"is",
"a",
"utility",
"function",
"for",
"the",
"function",
"above",
"which",
"performs",
"the",
"iteration",
"over",
"each",
"plane",
"s",
"galaxies",
"\\",
"and",
"computes",
"each",
"galaxy",
"s",
"unmasked",
"blurred",
"image",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/plane.py#L416-L428 | [
"def",
"unmasked_blurred_image_of_galaxies_from_psf",
"(",
"self",
",",
"padded_grid_stack",
",",
"psf",
")",
":",
"return",
"[",
"padded_grid_stack",
".",
"unmasked_blurred_image_from_psf_and_unmasked_image",
"(",
"psf",
",",
"image",
")",
"if",
"not",
"galaxy",
".",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | PlanePositions.trace_to_next_plane | Trace the positions to the next plane. | autolens/lens/plane.py | def trace_to_next_plane(self):
"""Trace the positions to the next plane."""
return list(map(lambda positions, deflections: np.subtract(positions, deflections),
self.positions, self.deflections)) | def trace_to_next_plane(self):
"""Trace the positions to the next plane."""
return list(map(lambda positions, deflections: np.subtract(positions, deflections),
self.positions, self.deflections)) | [
"Trace",
"the",
"positions",
"to",
"the",
"next",
"plane",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/lens/plane.py#L490-L493 | [
"def",
"trace_to_next_plane",
"(",
"self",
")",
":",
"return",
"list",
"(",
"map",
"(",
"lambda",
"positions",
",",
"deflections",
":",
"np",
".",
"subtract",
"(",
"positions",
",",
"deflections",
")",
",",
"self",
".",
"positions",
",",
"self",
".",
"de... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | RectangularArrayGeometry.grid_arcsec_to_grid_pixels | Convert a grid of (y,x) arc second coordinates to a grid of (y,x) pixel values. Pixel coordinates are \
returned as floats such that they include the decimal offset from each pixel's top-left corner.
The pixel coordinate origin is at the top left corner of the grid, such that the pixel [0,0] correspond... | autolens/data/array/scaled_array.py | def grid_arcsec_to_grid_pixels(self, grid_arcsec):
"""Convert a grid of (y,x) arc second coordinates to a grid of (y,x) pixel values. Pixel coordinates are \
returned as floats such that they include the decimal offset from each pixel's top-left corner.
The pixel coordinate origin is at the top... | def grid_arcsec_to_grid_pixels(self, grid_arcsec):
"""Convert a grid of (y,x) arc second coordinates to a grid of (y,x) pixel values. Pixel coordinates are \
returned as floats such that they include the decimal offset from each pixel's top-left corner.
The pixel coordinate origin is at the top... | [
"Convert",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"arc",
"second",
"coordinates",
"to",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"pixel",
"values",
".",
"Pixel",
"coordinates",
"are",
"\\",
"returned",
"as",
"floats",
"such",
"that",
"they",
"include",
... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L60-L76 | [
"def",
"grid_arcsec_to_grid_pixels",
"(",
"self",
",",
"grid_arcsec",
")",
":",
"return",
"grid_util",
".",
"grid_arcsec_1d_to_grid_pixels_1d",
"(",
"grid_arcsec_1d",
"=",
"grid_arcsec",
",",
"shape",
"=",
"self",
".",
"shape",
",",
"pixel_scales",
"=",
"self",
".... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | RectangularArrayGeometry.grid_arcsec_to_grid_pixel_centres | Convert a grid of (y,x) arc second coordinates to a grid of (y,x) pixel values. Pixel coordinates are \
returned as integers such that they map directly to the pixel they are contained within.
The pixel coordinate origin is at the top left corner of the grid, such that the pixel [0,0] corresponds to \
... | autolens/data/array/scaled_array.py | def grid_arcsec_to_grid_pixel_centres(self, grid_arcsec):
"""Convert a grid of (y,x) arc second coordinates to a grid of (y,x) pixel values. Pixel coordinates are \
returned as integers such that they map directly to the pixel they are contained within.
The pixel coordinate origin is at the top... | def grid_arcsec_to_grid_pixel_centres(self, grid_arcsec):
"""Convert a grid of (y,x) arc second coordinates to a grid of (y,x) pixel values. Pixel coordinates are \
returned as integers such that they map directly to the pixel they are contained within.
The pixel coordinate origin is at the top... | [
"Convert",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"arc",
"second",
"coordinates",
"to",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"pixel",
"values",
".",
"Pixel",
"coordinates",
"are",
"\\",
"returned",
"as",
"integers",
"such",
"that",
"they",
"map",
"... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L78-L96 | [
"def",
"grid_arcsec_to_grid_pixel_centres",
"(",
"self",
",",
"grid_arcsec",
")",
":",
"return",
"grid_util",
".",
"grid_arcsec_1d_to_grid_pixel_centres_1d",
"(",
"grid_arcsec_1d",
"=",
"grid_arcsec",
",",
"shape",
"=",
"self",
".",
"shape",
",",
"pixel_scales",
"=",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | RectangularArrayGeometry.grid_arcsec_to_grid_pixel_indexes | Convert a grid of (y,x) arc second coordinates to a grid of (y,x) pixel 1D indexes. Pixel coordinates are \
returned as integers such that they are the pixel from the top-left of the 2D grid going rights and then \
downwards.
For example:
The pixel at the top-left, whose 2D index is [0... | autolens/data/array/scaled_array.py | def grid_arcsec_to_grid_pixel_indexes(self, grid_arcsec):
"""Convert a grid of (y,x) arc second coordinates to a grid of (y,x) pixel 1D indexes. Pixel coordinates are \
returned as integers such that they are the pixel from the top-left of the 2D grid going rights and then \
downwards.
... | def grid_arcsec_to_grid_pixel_indexes(self, grid_arcsec):
"""Convert a grid of (y,x) arc second coordinates to a grid of (y,x) pixel 1D indexes. Pixel coordinates are \
returned as integers such that they are the pixel from the top-left of the 2D grid going rights and then \
downwards.
... | [
"Convert",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"arc",
"second",
"coordinates",
"to",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"pixel",
"1D",
"indexes",
".",
"Pixel",
"coordinates",
"are",
"\\",
"returned",
"as",
"integers",
"such",
"that",
"they",
"... | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L98-L120 | [
"def",
"grid_arcsec_to_grid_pixel_indexes",
"(",
"self",
",",
"grid_arcsec",
")",
":",
"return",
"grid_util",
".",
"grid_arcsec_1d_to_grid_pixel_indexes_1d",
"(",
"grid_arcsec_1d",
"=",
"grid_arcsec",
",",
"shape",
"=",
"self",
".",
"shape",
",",
"pixel_scales",
"=",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | RectangularArrayGeometry.grid_pixels_to_grid_arcsec | Convert a grid of (y,x) pixel coordinates to a grid of (y,x) arc second values.
The pixel coordinate origin is at the top left corner of the grid, such that the pixel [0,0] corresponds to \
higher y arc-second coordinate value and lowest x arc-second coordinate.
The arc-second coordinate origi... | autolens/data/array/scaled_array.py | def grid_pixels_to_grid_arcsec(self, grid_pixels):
"""Convert a grid of (y,x) pixel coordinates to a grid of (y,x) arc second values.
The pixel coordinate origin is at the top left corner of the grid, such that the pixel [0,0] corresponds to \
higher y arc-second coordinate value and lowest x a... | def grid_pixels_to_grid_arcsec(self, grid_pixels):
"""Convert a grid of (y,x) pixel coordinates to a grid of (y,x) arc second values.
The pixel coordinate origin is at the top left corner of the grid, such that the pixel [0,0] corresponds to \
higher y arc-second coordinate value and lowest x a... | [
"Convert",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"pixel",
"coordinates",
"to",
"a",
"grid",
"of",
"(",
"y",
"x",
")",
"arc",
"second",
"values",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L122-L137 | [
"def",
"grid_pixels_to_grid_arcsec",
"(",
"self",
",",
"grid_pixels",
")",
":",
"return",
"grid_util",
".",
"grid_pixels_1d_to_grid_arcsec_1d",
"(",
"grid_pixels_1d",
"=",
"grid_pixels",
",",
"shape",
"=",
"self",
".",
"shape",
",",
"pixel_scales",
"=",
"self",
".... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | RectangularArrayGeometry.grid_1d | The arc second-grid of (y,x) coordinates of every pixel.
This is defined from the top-left corner, such that the first pixel at location [0, 0] will have a negative x \
value y value in arc seconds. | autolens/data/array/scaled_array.py | def grid_1d(self):
""" The arc second-grid of (y,x) coordinates of every pixel.
This is defined from the top-left corner, such that the first pixel at location [0, 0] will have a negative x \
value y value in arc seconds.
"""
return grid_util.regular_grid_1d_from_shape_pixel_sca... | def grid_1d(self):
""" The arc second-grid of (y,x) coordinates of every pixel.
This is defined from the top-left corner, such that the first pixel at location [0, 0] will have a negative x \
value y value in arc seconds.
"""
return grid_util.regular_grid_1d_from_shape_pixel_sca... | [
"The",
"arc",
"second",
"-",
"grid",
"of",
"(",
"y",
"x",
")",
"coordinates",
"of",
"every",
"pixel",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L140-L148 | [
"def",
"grid_1d",
"(",
"self",
")",
":",
"return",
"grid_util",
".",
"regular_grid_1d_from_shape_pixel_scales_and_origin",
"(",
"shape",
"=",
"self",
".",
"shape",
",",
"pixel_scales",
"=",
"self",
".",
"pixel_scales",
",",
"origin",
"=",
"self",
".",
"origin",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | RectangularArrayGeometry.grid_2d | The arc second-grid of (y,x) coordinates of every pixel.
This is defined from the top-left corner, such that the first pixel at location [0, 0] will have a negative x \
value y value in arc seconds. | autolens/data/array/scaled_array.py | def grid_2d(self):
""" The arc second-grid of (y,x) coordinates of every pixel.
This is defined from the top-left corner, such that the first pixel at location [0, 0] will have a negative x \
value y value in arc seconds.
"""
return grid_util.regular_grid_2d_from_shape_pixel_sca... | def grid_2d(self):
""" The arc second-grid of (y,x) coordinates of every pixel.
This is defined from the top-left corner, such that the first pixel at location [0, 0] will have a negative x \
value y value in arc seconds.
"""
return grid_util.regular_grid_2d_from_shape_pixel_sca... | [
"The",
"arc",
"second",
"-",
"grid",
"of",
"(",
"y",
"x",
")",
"coordinates",
"of",
"every",
"pixel",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L151-L159 | [
"def",
"grid_2d",
"(",
"self",
")",
":",
"return",
"grid_util",
".",
"regular_grid_2d_from_shape_pixel_scales_and_origin",
"(",
"shape",
"=",
"self",
".",
"shape",
",",
"pixel_scales",
"=",
"self",
".",
"pixel_scales",
",",
"origin",
"=",
"self",
".",
"origin",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | Array.new_with_array | Parameters
----------
array: ndarray
An ndarray
Returns
-------
new_array: ScaledSquarePixelArray
A new instance of this class that shares all of this instances attributes with a new ndarray. | autolens/data/array/scaled_array.py | def new_with_array(self, array):
"""
Parameters
----------
array: ndarray
An ndarray
Returns
-------
new_array: ScaledSquarePixelArray
A new instance of this class that shares all of this instances attributes with a new ndarray.
""... | def new_with_array(self, array):
"""
Parameters
----------
array: ndarray
An ndarray
Returns
-------
new_array: ScaledSquarePixelArray
A new instance of this class that shares all of this instances attributes with a new ndarray.
""... | [
"Parameters",
"----------",
"array",
":",
"ndarray",
"An",
"ndarray"
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L189-L205 | [
"def",
"new_with_array",
"(",
"self",
",",
"array",
")",
":",
"arguments",
"=",
"vars",
"(",
"self",
")",
"arguments",
".",
"update",
"(",
"{",
"\"array\"",
":",
"array",
"}",
")",
"if",
"'centre'",
"in",
"arguments",
":",
"arguments",
".",
"pop",
"(",... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | ScaledSquarePixelArray.from_fits_with_pixel_scale | Loads the image from a .fits file.
Parameters
----------
file_path : str
The full path of the fits file.
hdu : int
The HDU number in the fits file containing the image image.
pixel_scale: float
The arc-second to pixel conversion factor of each... | autolens/data/array/scaled_array.py | def from_fits_with_pixel_scale(cls, file_path, hdu, pixel_scale, origin=(0.0, 0.0)):
"""
Loads the image from a .fits file.
Parameters
----------
file_path : str
The full path of the fits file.
hdu : int
The HDU number in the fits file containing ... | def from_fits_with_pixel_scale(cls, file_path, hdu, pixel_scale, origin=(0.0, 0.0)):
"""
Loads the image from a .fits file.
Parameters
----------
file_path : str
The full path of the fits file.
hdu : int
The HDU number in the fits file containing ... | [
"Loads",
"the",
"image",
"from",
"a",
".",
"fits",
"file",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L282-L295 | [
"def",
"from_fits_with_pixel_scale",
"(",
"cls",
",",
"file_path",
",",
"hdu",
",",
"pixel_scale",
",",
"origin",
"=",
"(",
"0.0",
",",
"0.0",
")",
")",
":",
"return",
"cls",
"(",
"array_util",
".",
"numpy_array_2d_from_fits",
"(",
"file_path",
",",
"hdu",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | ScaledSquarePixelArray.single_value | Creates an instance of Array and fills it with a single value
Parameters
----------
value: float
The value with which the array should be filled
shape: (int, int)
The shape of the array
pixel_scale: float
The scale of a pixel in arc seconds
... | autolens/data/array/scaled_array.py | def single_value(cls, value, shape, pixel_scale, origin=(0.0, 0.0)):
"""
Creates an instance of Array and fills it with a single value
Parameters
----------
value: float
The value with which the array should be filled
shape: (int, int)
The shape o... | def single_value(cls, value, shape, pixel_scale, origin=(0.0, 0.0)):
"""
Creates an instance of Array and fills it with a single value
Parameters
----------
value: float
The value with which the array should be filled
shape: (int, int)
The shape o... | [
"Creates",
"an",
"instance",
"of",
"Array",
"and",
"fills",
"it",
"with",
"a",
"single",
"value"
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L298-L317 | [
"def",
"single_value",
"(",
"cls",
",",
"value",
",",
"shape",
",",
"pixel_scale",
",",
"origin",
"=",
"(",
"0.0",
",",
"0.0",
")",
")",
":",
"array",
"=",
"np",
".",
"ones",
"(",
"shape",
")",
"*",
"value",
"return",
"cls",
"(",
"array",
",",
"p... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | ScaledSquarePixelArray.flatten | Returns
-------
flat_scaled_array: ScaledSquarePixelArray
A copy of this array flattened to 1D | autolens/data/array/scaled_array.py | def flatten(self, order='C'):
"""
Returns
-------
flat_scaled_array: ScaledSquarePixelArray
A copy of this array flattened to 1D
"""
return self.new_with_array(super(ScaledSquarePixelArray, self).flatten(order)) | def flatten(self, order='C'):
"""
Returns
-------
flat_scaled_array: ScaledSquarePixelArray
A copy of this array flattened to 1D
"""
return self.new_with_array(super(ScaledSquarePixelArray, self).flatten(order)) | [
"Returns",
"-------",
"flat_scaled_array",
":",
"ScaledSquarePixelArray",
"A",
"copy",
"of",
"this",
"array",
"flattened",
"to",
"1D"
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L319-L326 | [
"def",
"flatten",
"(",
"self",
",",
"order",
"=",
"'C'",
")",
":",
"return",
"self",
".",
"new_with_array",
"(",
"super",
"(",
"ScaledSquarePixelArray",
",",
"self",
")",
".",
"flatten",
"(",
"order",
")",
")"
] | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | ScaledSquarePixelArray.zoomed_scaled_array_around_mask | Extract the 2D region of an array corresponding to the rectangle encompassing all unmasked values.
This is used to extract and visualize only the region of an image that is used in an analysis.
Parameters
----------
mask : mask.Mask
The mask around which the scaled array is... | autolens/data/array/scaled_array.py | def zoomed_scaled_array_around_mask(self, mask, buffer=1):
"""Extract the 2D region of an array corresponding to the rectangle encompassing all unmasked values.
This is used to extract and visualize only the region of an image that is used in an analysis.
Parameters
----------
... | def zoomed_scaled_array_around_mask(self, mask, buffer=1):
"""Extract the 2D region of an array corresponding to the rectangle encompassing all unmasked values.
This is used to extract and visualize only the region of an image that is used in an analysis.
Parameters
----------
... | [
"Extract",
"the",
"2D",
"region",
"of",
"an",
"array",
"corresponding",
"to",
"the",
"rectangle",
"encompassing",
"all",
"unmasked",
"values",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L335-L349 | [
"def",
"zoomed_scaled_array_around_mask",
"(",
"self",
",",
"mask",
",",
"buffer",
"=",
"1",
")",
":",
"return",
"self",
".",
"new_with_array",
"(",
"array",
"=",
"array_util",
".",
"extracted_array_2d_from_array_2d_and_coordinates",
"(",
"array_2d",
"=",
"self",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | ScaledSquarePixelArray.resized_scaled_array_from_array | resized the array to a new shape and at a new origin.
Parameters
-----------
new_shape : (int, int)
The new two-dimensional shape of the array. | autolens/data/array/scaled_array.py | def resized_scaled_array_from_array(self, new_shape, new_centre_pixels=None, new_centre_arcsec=None):
"""resized the array to a new shape and at a new origin.
Parameters
-----------
new_shape : (int, int)
The new two-dimensional shape of the array.
"""
if new... | def resized_scaled_array_from_array(self, new_shape, new_centre_pixels=None, new_centre_arcsec=None):
"""resized the array to a new shape and at a new origin.
Parameters
-----------
new_shape : (int, int)
The new two-dimensional shape of the array.
"""
if new... | [
"resized",
"the",
"array",
"to",
"a",
"new",
"shape",
"and",
"at",
"a",
"new",
"origin",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L351-L371 | [
"def",
"resized_scaled_array_from_array",
"(",
"self",
",",
"new_shape",
",",
"new_centre_pixels",
"=",
"None",
",",
"new_centre_arcsec",
"=",
"None",
")",
":",
"if",
"new_centre_pixels",
"is",
"None",
"and",
"new_centre_arcsec",
"is",
"None",
":",
"new_centre",
"... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
valid | ScaledRectangularPixelArray.from_fits_with_pixel_scale | Loads the image from a .fits file.
Parameters
----------
file_path : str
The full path of the fits file.
hdu : int
The HDU number in the fits file containing the hyper.
pixel_scales: (float, float)
The arc-second to pixel conversion factor of ... | autolens/data/array/scaled_array.py | def from_fits_with_pixel_scale(cls, file_path, hdu, pixel_scales, origin=(0.0, 0.0)):
"""
Loads the image from a .fits file.
Parameters
----------
file_path : str
The full path of the fits file.
hdu : int
The HDU number in the fits file containing... | def from_fits_with_pixel_scale(cls, file_path, hdu, pixel_scales, origin=(0.0, 0.0)):
"""
Loads the image from a .fits file.
Parameters
----------
file_path : str
The full path of the fits file.
hdu : int
The HDU number in the fits file containing... | [
"Loads",
"the",
"image",
"from",
"a",
".",
"fits",
"file",
"."
] | Jammy2211/PyAutoLens | python | https://github.com/Jammy2211/PyAutoLens/blob/91e50369c7a9c048c83d217625578b72423cd5a7/autolens/data/array/scaled_array.py#L446-L459 | [
"def",
"from_fits_with_pixel_scale",
"(",
"cls",
",",
"file_path",
",",
"hdu",
",",
"pixel_scales",
",",
"origin",
"=",
"(",
"0.0",
",",
"0.0",
")",
")",
":",
"return",
"cls",
"(",
"array_util",
".",
"numpy_array_2d_from_fits",
"(",
"file_path",
",",
"hdu",
... | 91e50369c7a9c048c83d217625578b72423cd5a7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.