LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Public Member Functions | |
def | get (self, name, default=None) |
def | getArray (self, name) |
def | getScalar (self, name) |
def | set (self, name, value, comment=None) |
def | add (self, name, value, comment=None) |
def | setComment (self, name, comment) |
def | toList (self) |
def | toOrderedDict (self) |
def | __eq__ (self, other) |
def | __copy__ (self) |
def | __deepcopy__ (self, memo) |
def | __iter__ (self) |
def | __setitem__ (self, name, value) |
def | __reduce__ (self) |
Static Public Attributes | |
string | COMMENTSUFFIX = "#COMMENT" |
def | toDict = toOrderedDict |
Definition at line 742 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.__copy__ | ( | self | ) |
Definition at line 955 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.__deepcopy__ | ( | self, | |
memo | |||
) |
Definition at line 962 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.__eq__ | ( | self, | |
other | |||
) |
Definition at line 942 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.__iter__ | ( | self | ) |
Definition at line 967 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.__reduce__ | ( | self | ) |
Definition at line 1001 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.__setitem__ | ( | self, | |
name, | |||
value | |||
) |
Assigns the supplied value to the container. Parameters ---------- name : `str` Name of item to update. If the name ends with `PropertyList.COMMENTSUFFIX`, the comment is updated rather than the value. value : Value to assign Can be any value supported by the container's ``set()`` method. `~collections.abc.Mapping` are converted to `PropertySet` before assignment. Notes ----- Uses `PropertySet.set`, overwriting any previous value.
Definition at line 971 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.add | ( | self, | |
name, | |||
value, | |||
comment = None |
|||
) |
Append one or more values to a given item, which need not exist If the item exists then the new value(s) are appended; otherwise it is like calling `set` Parameters ---------- name : `str` Name of item value : any supported type Value of item; may be a scalar or array Notes ----- If `value` is an `lsst.daf.base.PropertySet` items are added using dotted names (e.g. if name="a" and value contains an item "b" which is another PropertySet and contains an item "c" which is numeric or string, then the value of "c" is added as "a.b.c", appended to the existing values of "a.b.c" if any (in which case the types must be compatible). Raises ------ lsst::pex::exceptions::TypeError Raise if the type of ``value`` is incompatible with the existing value of the item.
Definition at line 846 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.get | ( | self, | |
name, | |||
default = None |
|||
) |
Return an item as a scalar, else default. Identical to `getScalar` except that a default value is returned if the requested key is not present. If an array item is requested the final value in the array will be returned. Parameters ---------- name : ``str`` Name of item default : `object`, optional Default value to use if the named item is not present. Returns ------- value : any type supported by container Single value of any type supported by the container, else the default value if the requested item is not present in the container. For array items the most recently added value is returned.
Definition at line 758 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.getArray | ( | self, | |
name | |||
) |
Return an item as a list. Parameters ---------- name : `str` Name of item Returns ------- values : `list` of values The contents of the item, guaranteed to be returned as a `list.` Raises ------ KeyError Raised if the item does not exist.
Definition at line 785 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.getScalar | ( | self, | |
name | |||
) |
Return an item as a scalar If the item has more than one value then the last value is returned. Parameters ---------- name : `str` Name of item. Returns ------- value : scalar item Value stored in the item. If the item refers to an array the most recently added value is returned. Raises ------ KeyError Raised if the item does not exist.
Definition at line 805 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.set | ( | self, | |
name, | |||
value, | |||
comment = None |
|||
) |
Set the value of an item If the item already exists it is silently replaced; the types need not match. Parameters ---------- name : `str` Name of item value : any supported type Value of item; may be a scalar or array
Definition at line 828 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.setComment | ( | self, | |
name, | |||
comment | |||
) |
Set the comment for an existing entry. Parameters ---------- name : `str` Name of the key to receive updated comment. comment : `comment` New comment string.
Definition at line 879 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.toList | ( | self | ) |
Return a list of tuples of name, value, comment for each property in the order that they were inserted. Returns ------- ret : `list` of `tuple` Tuples of name, value, comment for each property in the order in which they were inserted.
Definition at line 898 of file propertyContainerContinued.py.
def lsst.daf.base.propertyContainer.propertyContainerContinued.PropertyList.toOrderedDict | ( | self | ) |
Return an ordered dictionary with all properties in the order that they were inserted. Returns ------- d : `dict` Ordered dictionary with all properties in the order that they were inserted. Comments are not included. Notes ----- As of Python 3.6 dicts retain their insertion order.
Definition at line 920 of file propertyContainerContinued.py.
|
static |
Definition at line 754 of file propertyContainerContinued.py.
|
static |
Definition at line 940 of file propertyContainerContinued.py.