Package reflectometry :: Package reduction :: Module data :: Class Data

Class Data

source code


Data object.

For one-dimensional data use x,v. For two and three dimensional data use x,y,z,v.

Multi-dimensional data can be regular or irregular. If it is irregular, the size of x,y,z must match the size of z. If it is regular, the size of each vector x,y,z must match the corresponding dimension of v.

Note: for reflectivity the natural dimensions are x='Qz',y='Qx',z='Qy'

Instance Methods
 
__init__(self, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
summary(self)
Return a text description of the contents of data
source code
 
log(self, msg)
Record corrections that have been applied to the data
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Variables
  dx = None
  dy = None
  dz = None
  v = None
  variance = None
  vlabel = 'v'
  vunits = None
  xlabel = 'x'
  xunits = None
  ylabel = 'y'
  yunits = None
  zlabel = 'z'
  zunits = None
Properties
  dv
  x
  y
  z
  xedges
  yedges
  zedges

Inherited from object: __class__

Method Details

__init__(self, **kw)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

Property Details

dv

Get Method:
_getdv(self)
Set Method:
_setdv(self, dv)
Delete Method:
'1-sigma uncertainty'

x

Get Method:
_getx(self)
Set Method:
_setx(self, t)
Delete Method:
'x centers'

y

Get Method:
_gety(self)
Set Method:
_sety(self, t)
Delete Method:
'y centers'

z

Get Method:
_getz(self)
Set Method:
_setz(self, t)
Delete Method:
'z centers'

xedges

Get Method:
_getxedges(self)
Set Method:
_setxedges(self, t)
Delete Method:
'x edges'

yedges

Get Method:
_getyedges(self)
Set Method:
_setyedges(self, t)
Delete Method:
'y edges'

zedges

Get Method:
_getzedges(self)
Set Method:
_setzedges(self, t)
Delete Method:
'z edges'