autolens.PointDataset

class autolens.PointDataset(name: str, positions: Union[autoarray.structures.grids.two_d.grid_2d_irregular.Grid2DIrregular, List[List[T]], List[Tuple]], positions_noise_map: Union[autoarray.structures.arrays.values.ValuesIrregular, List[float]], fluxes: Union[autoarray.structures.arrays.values.ValuesIrregular, List[float], None] = None, fluxes_noise_map: Union[autoarray.structures.arrays.values.ValuesIrregular, List[float], None] = None)
__init__(name: str, positions: Union[autoarray.structures.grids.two_d.grid_2d_irregular.Grid2DIrregular, List[List[T]], List[Tuple]], positions_noise_map: Union[autoarray.structures.arrays.values.ValuesIrregular, List[float]], fluxes: Union[autoarray.structures.arrays.values.ValuesIrregular, List[float], None] = None, fluxes_noise_map: Union[autoarray.structures.arrays.values.ValuesIrregular, List[float], None] = None)

A collection of the data component that can be used for point-source model-fitting, for example fitting the observed positions of a a strongly lensed quasar or supernovae or in strong lens cluster modeling, where there may be many tens or hundreds of individual source galaxies each of which are modeled as a point source.

The name of the dataset is required for point-source model-fitting, as it pairs a point-source dataset with its corresponding point-source in the model-fit. For example, if a dataset has the name source_1, it will be paired with the Point model-component which has the name source_1. If a dataset component is not successfully paired with a model-component, an error is raised.

Parameters:
  • name – The name of the point source dataset which is paired to a Point in the Model.
  • positions – The image-plane (y,x) positions of the point-source.
  • positions_noise_map – The noise-value of every (y,x) position, which is typically the pixel-scale of the data.
  • fluxes – The image-plane flux of each observed point-source of light.
  • fluxes_noise_map – The noise-value of every observed flux.

Methods

__init__(name, positions, List[List[T]], …) A collection of the data component that can be used for point-source model-fitting, for example fitting the observed positions of a a strongly lensed quasar or supernovae or in strong lens cluster modeling, where there may be many tens or hundreds of individual source galaxies each of which are modeled as a point source.
from_dict(dict_) Create a point source dataset from a dictionary representation.

Attributes

dict A dictionary representation of this instance.
dict

A dictionary representation of this instance.

Arrays are represented as lists or lists of lists.

classmethod from_dict(dict_: <property object at 0x7fba611e1170>) → autolens.point.point_dataset.PointDataset

Create a point source dataset from a dictionary representation.

Parameters:dict – A dictionary. Arrays are represented as lists or lists of lists.
Returns:
Return type:An instance