LSST Applications g04e9c324dd+8c5ae1fdc5,g0644efc3f0+366663dc37,g123d84c11c+8c5ae1fdc5,g1ec0fe41b4+6ec6b74de1,g1fd858c14a+1be88e80db,g3533f9d6cb+366663dc37,g35bb328faa+8c5ae1fdc5,g35ef7ab7cf+285dd5b202,g53246c7159+8c5ae1fdc5,g60b5630c4e+366663dc37,g663da51e9b+41529343ca,g6735e52a0d+29de3d959a,g67b6fd64d1+57193d00fb,g7605de067c+8f72e4d2dc,g78460c75b0+7e33a9eb6d,g786e29fd12+668abc6043,g844c57033c+03ddc13274,g8852436030+e345a59dd4,g89139ef638+57193d00fb,g989de1cb63+57193d00fb,g9a0bdda227+852181cf57,g9f33ca652e+a2d35689ce,ga1e959baac+5fbc491aed,ga2f891cd6c+366663dc37,gabe3b4be73+8856018cbb,gabf8522325+cc757f8247,gac2eed3f23+57193d00fb,gb1101e3267+f6b489998a,gb89ab40317+57193d00fb,gcf25f946ba+e345a59dd4,gd107969129+227687db21,gd6cbbdb0b4+8e46defd2a,gde0f65d7ad+2dad650f79,ge278dab8ac+2322f1d6ea,ge410e46f29+57193d00fb,gf30d85a44d+8e3077faf9,gf5e32f922b+8c5ae1fdc5,gff02db199a+5c78c1866e,w.2025.28
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 = field | |
_config_ = weakref.ref(config) | |
Config | _history = self._config._history.setdefault(self._field.name, []) |
list | _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 ) |
Definition at line 76 of file listField.py.
lsst.pex.config.listField.List.__contains__ | ( | self, | |
x ) |
Definition at line 136 of file listField.py.
lsst.pex.config.listField.List.__delitem__ | ( | self, | |
i, | |||
at = None, | |||
label = "delitem", | |||
setHistory = True ) |
Definition at line 186 of file listField.py.
lsst.pex.config.listField.List.__eq__ | ( | self, | |
other ) |
Definition at line 227 of file listField.py.
lsst.pex.config.listField.List.__getitem__ | ( | self, | |
i ) |
Definition at line 183 of file listField.py.
FieldTypeVar lsst.pex.config.listField.List.__getitem__ | ( | self, | |
int | i ) |
Definition at line 178 of file listField.py.
MutableSequence[FieldTypeVar] lsst.pex.config.listField.List.__getitem__ | ( | self, | |
slice | i ) |
Definition at line 181 of file listField.py.
lsst.pex.config.listField.List.__iter__ | ( | self | ) |
Definition at line 195 of file listField.py.
lsst.pex.config.listField.List.__len__ | ( | self | ) |
Definition at line 139 of file listField.py.
lsst.pex.config.listField.List.__ne__ | ( | self, | |
other ) |
Definition at line 242 of file listField.py.
lsst.pex.config.listField.List.__reduce__ | ( | self | ) |
Definition at line 257 of file listField.py.
lsst.pex.config.listField.List.__repr__ | ( | self | ) |
Definition at line 221 of file listField.py.
lsst.pex.config.listField.List.__setattr__ | ( | self, | |
attr, | |||
value, | |||
at = None, | |||
label = "assignment" ) |
Definition at line 245 of file listField.py.
lsst.pex.config.listField.List.__setitem__ | ( | self, | |
i, | |||
x, | |||
at = None, | |||
label = "setitem", | |||
setHistory = True ) |
Definition at line 157 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 143 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 148 of file listField.py.
lsst.pex.config.listField.List.__str__ | ( | self | ) |
Definition at line 224 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 198 of file listField.py.
lsst.pex.config.listField.List.list | ( | self | ) |
Sequence of items contained by the `List` (`list`).
Definition at line 128 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 122 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 132 of file listField.py.