LSST Applications g0265f82a02+0e5473021a,g02d81e74bb+f5613e8b4f,g1470d8bcf6+190ad2ba91,g14a832a312+311607e4ab,g2079a07aa2+86d27d4dc4,g2305ad1205+a8e3196225,g295015adf3+b67ee847e5,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g3ddfee87b4+a761f810f3,g487adcacf7+17c8fdbcbd,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+65b5bd823e,g5a732f18d5+53520f316c,g64a986408d+f5613e8b4f,g6c1bc301e9+51106c2951,g858d7b2824+f5613e8b4f,g8a8a8dda67+585e252eca,g99cad8db69+6729933424,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+ef4e3a5875,gb0e22166c9+60f28cb32d,gb6a65358fc+0e5473021a,gba4ed39666+c2a2e4ac27,gbb8dafda3b+e9bba80f27,gc120e1dc64+eee469a5e5,gc28159a63d+0e5473021a,gcf0d15dbbd+a761f810f3,gdaeeff99f8+f9a426f77a,ge6526c86ff+d4c1d4bfef,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gf1cff7945b+f5613e8b4f,w.2024.16
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, config, field, value, at, label, setHistory=True) | |
validateItem (self, i, x) | |
list (self) | |
__contains__ (self, x) | |
__len__ (self) | |
None | __setitem__ (self, int i, FieldTypeVar x, Any at=None, str label="setitem", bool setHistory=True) |
None | __setitem__ (self, slice i, Iterable[FieldTypeVar] x, Any at=None, str label="setitem", bool setHistory=True) |
__setitem__ (self, i, x, at=None, label="setitem", setHistory=True) | |
FieldTypeVar | __getitem__ (self, int i) |
MutableSequence[FieldTypeVar] | __getitem__ (self, slice i) |
__getitem__ (self, i) | |
__delitem__ (self, i, at=None, label="delitem", setHistory=True) | |
__iter__ (self) | |
insert (self, i, x, at=None, label="insert", setHistory=True) | |
__repr__ (self) | |
__str__ (self) | |
__eq__ (self, other) | |
__ne__ (self, other) | |
__setattr__ (self, attr, value, at=None, label="assignment") | |
__reduce__ (self) | |
Protected Member Functions | |
Config | _config (self) |
Protected Attributes | |
_field | |
_config_ | |
_history | |
_list | |
_config | |
Properties | |
history = property(lambda x: x._history) | |
List collection used internally by `ListField`. Parameters ---------- config : `lsst.pex.config.Config` Config instance that contains the ``field``. field : `ListField` Instance of the `ListField` using this ``List``. value : sequence Sequence of values that are inserted into this ``List``. at : `list` of `~lsst.pex.config.callStack.StackFrame` The call stack (created by `lsst.pex.config.callStack.getCallStack`). label : `str` Event label for the history. setHistory : `bool`, optional Enable setting the field's history, using the value of the ``at`` parameter. Default is `True`. Raises ------ FieldValidationError Raised if an item in the ``value`` parameter does not have the appropriate type for this field or does not pass the `ListField.itemCheck` method of the ``field`` parameter.
Definition at line 49 of file listField.py.
lsst.pex.config.listField.List.__init__ | ( | self, | |
config, | |||
field, | |||
value, | |||
at, | |||
label, | |||
setHistory = True ) |
Reimplemented in lsst.pex.config.listField.ListField.
Definition at line 76 of file listField.py.
lsst.pex.config.listField.List.__contains__ | ( | self, | |
x ) |
Definition at line 138 of file listField.py.
lsst.pex.config.listField.List.__delitem__ | ( | self, | |
i, | |||
at = None, | |||
label = "delitem", | |||
setHistory = True ) |
Definition at line 192 of file listField.py.
lsst.pex.config.listField.List.__eq__ | ( | self, | |
other ) |
Definition at line 233 of file listField.py.
lsst.pex.config.listField.List.__getitem__ | ( | self, | |
i ) |
Definition at line 189 of file listField.py.
FieldTypeVar lsst.pex.config.listField.List.__getitem__ | ( | self, | |
int | i ) |
Definition at line 182 of file listField.py.
MutableSequence[FieldTypeVar] lsst.pex.config.listField.List.__getitem__ | ( | self, | |
slice | i ) |
Definition at line 186 of file listField.py.
lsst.pex.config.listField.List.__iter__ | ( | self | ) |
Definition at line 201 of file listField.py.
lsst.pex.config.listField.List.__len__ | ( | self | ) |
Definition at line 141 of file listField.py.
lsst.pex.config.listField.List.__ne__ | ( | self, | |
other ) |
Definition at line 246 of file listField.py.
lsst.pex.config.listField.List.__reduce__ | ( | self | ) |
Definition at line 261 of file listField.py.
lsst.pex.config.listField.List.__repr__ | ( | self | ) |
Definition at line 227 of file listField.py.
lsst.pex.config.listField.List.__setattr__ | ( | self, | |
attr, | |||
value, | |||
at = None, | |||
label = "assignment" ) |
Definition at line 249 of file listField.py.
lsst.pex.config.listField.List.__setitem__ | ( | self, | |
i, | |||
x, | |||
at = None, | |||
label = "setitem", | |||
setHistory = True ) |
Definition at line 161 of file listField.py.
None lsst.pex.config.listField.List.__setitem__ | ( | self, | |
int | i, | ||
FieldTypeVar | x, | ||
Any | at = None, | ||
str | label = "setitem", | ||
bool | setHistory = True ) |
Definition at line 145 of file listField.py.
None lsst.pex.config.listField.List.__setitem__ | ( | self, | |
slice | i, | ||
Iterable[FieldTypeVar] | x, | ||
Any | at = None, | ||
str | label = "setitem", | ||
bool | setHistory = True ) |
Definition at line 151 of file listField.py.
lsst.pex.config.listField.List.__str__ | ( | self | ) |
Definition at line 230 of file listField.py.
|
protected |
Definition at line 93 of file listField.py.
lsst.pex.config.listField.List.insert | ( | self, | |
i, | |||
x, | |||
at = None, | |||
label = "insert", | |||
setHistory = True ) |
Insert an item into the list at the given index. Parameters ---------- i : `int` Index where the item is inserted. x : object Item that is inserted. at : `list` of `~lsst.pex.config.callStack.StackFrame` or `None`,\ optional The call stack (created by `lsst.pex.config.callStack.getCallStack`). label : `str`, optional Event label for the history. setHistory : `bool`, optional Enable setting the field's history, using the value of the ``at`` parameter. Default is `True`.
Definition at line 204 of file listField.py.
lsst.pex.config.listField.List.list | ( | self | ) |
Sequence of items contained by the `List` (`list`).
Definition at line 130 of file listField.py.
lsst.pex.config.listField.List.validateItem | ( | self, | |
i, | |||
x ) |
Validate an item to determine if it can be included in the list. Parameters ---------- i : `int` Index of the item in the `list`. x : object Item in the `list`. Raises ------ FieldValidationError Raised if an item in the ``value`` parameter does not have the appropriate type for this field or does not pass the field's `ListField.itemCheck` method.
Definition at line 100 of file listField.py.
|
protected |
Definition at line 124 of file listField.py.
|
protected |
Definition at line 78 of file listField.py.
|
protected |
Definition at line 77 of file listField.py.
|
protected |
Definition at line 79 of file listField.py.
|
protected |
Definition at line 80 of file listField.py.
|
static |
Definition at line 134 of file listField.py.