lsst.cp.pipe  21.0.0-27-gcbf119a+a00fe59290
Public Member Functions | Public Attributes | List of all members
lsst.cp.pipe.ptc.astierCovFitParameters.StructArray Class Reference
Inheritance diagram for lsst.cp.pipe.ptc.astierCovFitParameters.StructArray:

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
 

Detailed Description

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.

Member Function Documentation

◆ __array_finalize__()

def lsst.cp.pipe.ptc.astierCovFitParameters.StructArray.__array_finalize__ (   self,
  obj 
)

Definition at line 130 of file astierCovFitParameters.py.

◆ __getitem__()

def lsst.cp.pipe.ptc.astierCovFitParameters.StructArray.__getitem__ (   self,
  args 
)

Definition at line 135 of file astierCovFitParameters.py.

◆ __getslice__()

def lsst.cp.pipe.ptc.astierCovFitParameters.StructArray.__getslice__ (   self,
  start,
  stop 
)

Definition at line 147 of file astierCovFitParameters.py.

◆ __new__()

def lsst.cp.pipe.ptc.astierCovFitParameters.StructArray.__new__ (   cls,
  array,
  struct = [] 
)

Definition at line 125 of file astierCovFitParameters.py.

◆ __reduce__()

def lsst.cp.pipe.ptc.astierCovFitParameters.StructArray.__reduce__ (   self)

Definition at line 150 of file astierCovFitParameters.py.

◆ __setitem__()

def lsst.cp.pipe.ptc.astierCovFitParameters.StructArray.__setitem__ (   self,
  args,
  val 
)

Definition at line 141 of file astierCovFitParameters.py.

◆ __setstate__()

def lsst.cp.pipe.ptc.astierCovFitParameters.StructArray.__setstate__ (   self,
  state 
)

Definition at line 158 of file astierCovFitParameters.py.

Member Data Documentation

◆ struct

lsst.cp.pipe.ptc.astierCovFitParameters.StructArray.struct

Definition at line 133 of file astierCovFitParameters.py.


The documentation for this class was generated from the following file: