|
lsst.cp.pipe
20.0.0-9-gd915bd2+ba6d2d6bb0
|
Public Member Functions | |
| def | __new__ (cls, array, struct=[]) |
| def | __array_finalize__ (self, obj) |
| def | __getitem__ (self, args) |
| def | __setitem__ (self, args, val) |
| def | __getslice__ (self, start, stop) |
| def | __reduce__ (self) |
| def | __setstate__ (self, state) |
Public Attributes | |
| struct | |
Decorate numpy arrays with a collection of named slices.
Array slices becomes accessible by their name. This is applicable to
nd array, although the same `Structure` is shared between all
dimensions.
Examples:
---------
>>> v = StructArray(np.zeros(10), [('a', 3), ('b', 7)])
>>> print v['a']
[ 0. 0. 0.]
>>> C = StructArray(np.zeros((10,10)), [('a', 2), ('b', 8)])
>>> print C['a', 'a']
[[ 0. 0.]
[ 0. 0.]]
Definition at line 107 of file astierCovFitParameters.py.
| def lsst.cp.pipe.astierCovFitParameters.StructArray.__array_finalize__ | ( | self, | |
| obj | |||
| ) |
Definition at line 130 of file astierCovFitParameters.py.
| def lsst.cp.pipe.astierCovFitParameters.StructArray.__getitem__ | ( | self, | |
| args | |||
| ) |
Definition at line 135 of file astierCovFitParameters.py.
| def lsst.cp.pipe.astierCovFitParameters.StructArray.__getslice__ | ( | self, | |
| start, | |||
| stop | |||
| ) |
Definition at line 147 of file astierCovFitParameters.py.
| def lsst.cp.pipe.astierCovFitParameters.StructArray.__new__ | ( | cls, | |
| array, | |||
struct = [] |
|||
| ) |
Definition at line 125 of file astierCovFitParameters.py.
| def lsst.cp.pipe.astierCovFitParameters.StructArray.__reduce__ | ( | self | ) |
Definition at line 150 of file astierCovFitParameters.py.
| def lsst.cp.pipe.astierCovFitParameters.StructArray.__setitem__ | ( | self, | |
| args, | |||
| val | |||
| ) |
Definition at line 141 of file astierCovFitParameters.py.
| def lsst.cp.pipe.astierCovFitParameters.StructArray.__setstate__ | ( | self, | |
| state | |||
| ) |
Definition at line 158 of file astierCovFitParameters.py.
| lsst.cp.pipe.astierCovFitParameters.StructArray.struct |
Definition at line 133 of file astierCovFitParameters.py.
1.8.18