autolens.PointDict#

class autolens.PointDict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)[source]#
__init__(point_dataset_list: List[autolens.point.point_dataset.PointDataset])[source]#

A dictionary containing the entire point-source dataset, which could be many instances of the PointDataset object.

This dictionary uses the name of the PointDataset to act as the key of every entry of the dictionary, making it straight forward to access the attributes based on the dataset name.

Parameters

point_dataset_list – A list of all point-source datasets that are to be added to the point-source dictionary.

Returns

A dictionary where the keys are the name entries of each PointDataset and the values are the corresponding instance of the PointDataset class.

Return type

Dict[PointDataset]

Methods

__init__(point_dataset_list)

A dictionary containing the entire point-source dataset, which could be many instances of the PointDataset object.

clear()

copy()

from_dicts(dicts)

Create an instance from a list of dictionaries.

from_json(file_path)

fromkeys(iterable[, value])

Create a new dictionary with keys from iterable and values set to value.

get(key[, default])

Return the value for key if key is in the dictionary, else default.

items()

keys()

output_to_json(file_path[, overwrite])

pop(k[,d])

If key is not found, d is returned if given, otherwise KeyError is raised

popitem()

2-tuple; but raise KeyError if D is empty.

setdefault(key[, default])

Insert key with a value of default if key is not in the dictionary.

update([E, ]**F)

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

values()

Attributes

dicts

A list of dictionaries representing this collection of point source datasets.

positions_list