|
LSST Applications g00274db5b6+edbf708997,g00d0e8bbd7+edbf708997,g199a45376c+5137f08352,g1fd858c14a+1d4b6db739,g262e1987ae+f4d9505c4f,g29ae962dfc+7156fb1a53,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3e17d7035e+5b3adc59f5,g3fd5ace14f+852fa6fbcb,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+9f17e571f4,g67b6fd64d1+6dc8069a4c,g74acd417e5+ae494d68d9,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+536efcc10a,g7cc15d900a+d121454f8d,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d7436a09f+28c28d8d6d,g8ea07a8fe4+db21c37724,g92c671f44c+9f17e571f4,g98df359435+b2e6376b13,g99af87f6a8+b0f4ad7b8d,gac66b60396+966efe6077,gb88ae4c679+7dec8f19df,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gc24b5d6ed1+9f17e571f4,gca7fc764a6+6dc8069a4c,gcc769fe2a4+97d0256649,gd7ef33dd92+6dc8069a4c,gdab6d2f7ff+ae494d68d9,gdbb4c4dda9+9f17e571f4,ge410e46f29+6dc8069a4c,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
|
Public Member Functions | |
| __init__ (self, Config config, ListField field, Sequence[FieldTypeVar] value, list[StackFrame]|None at, str label, bool 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) |
| List | _copy (self, Config config) |
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 51 of file listField.py.
| lsst.pex.config.listField.List.__init__ | ( | self, | |
| Config | config, | ||
| ListField | field, | ||
| Sequence[FieldTypeVar] | value, | ||
| list[StackFrame] | None | at, | ||
| str | label, | ||
| bool | setHistory = True ) |
Definition at line 78 of file listField.py.
| lsst.pex.config.listField.List.__contains__ | ( | self, | |
| x ) |
Definition at line 149 of file listField.py.
| lsst.pex.config.listField.List.__delitem__ | ( | self, | |
| i, | |||
| at = None, | |||
| label = "delitem", | |||
| setHistory = True ) |
Definition at line 199 of file listField.py.
| lsst.pex.config.listField.List.__eq__ | ( | self, | |
| other ) |
Definition at line 240 of file listField.py.
| lsst.pex.config.listField.List.__getitem__ | ( | self, | |
| i ) |
Definition at line 196 of file listField.py.
| FieldTypeVar lsst.pex.config.listField.List.__getitem__ | ( | self, | |
| int | i ) |
Definition at line 191 of file listField.py.
| MutableSequence[FieldTypeVar] lsst.pex.config.listField.List.__getitem__ | ( | self, | |
| slice | i ) |
Definition at line 194 of file listField.py.
| lsst.pex.config.listField.List.__iter__ | ( | self | ) |
Definition at line 208 of file listField.py.
| lsst.pex.config.listField.List.__len__ | ( | self | ) |
Definition at line 152 of file listField.py.
| lsst.pex.config.listField.List.__ne__ | ( | self, | |
| other ) |
Definition at line 255 of file listField.py.
| lsst.pex.config.listField.List.__reduce__ | ( | self | ) |
Definition at line 270 of file listField.py.
| lsst.pex.config.listField.List.__repr__ | ( | self | ) |
Definition at line 234 of file listField.py.
| lsst.pex.config.listField.List.__setattr__ | ( | self, | |
| attr, | |||
| value, | |||
| at = None, | |||
| label = "assignment" ) |
Definition at line 258 of file listField.py.
| lsst.pex.config.listField.List.__setitem__ | ( | self, | |
| i, | |||
| x, | |||
| at = None, | |||
| label = "setitem", | |||
| setHistory = True ) |
Definition at line 170 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 156 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 161 of file listField.py.
| lsst.pex.config.listField.List.__str__ | ( | self | ) |
Definition at line 237 of file listField.py.
|
protected |
Definition at line 103 of file listField.py.
Definition at line 146 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 211 of file listField.py.
| lsst.pex.config.listField.List.list | ( | self | ) |
Sequence of items contained by the `List` (`list`).
Definition at line 138 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 110 of file listField.py.
|
protected |
Definition at line 132 of file listField.py.
|
protected |
Definition at line 88 of file listField.py.
|
protected |
Definition at line 87 of file listField.py.
|
protected |
Definition at line 89 of file listField.py.
|
protected |
Definition at line 90 of file listField.py.
|
static |
Definition at line 142 of file listField.py.