Package reflectometry :: Package reduction :: Module data :: Class PolarizedData

Class PolarizedData

source code


Polarized data object. This holds all four cross sections of a polarized measurement, and provides operations for aligning and transforming the cross sections.
Instance Methods
 
__init__(self, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
set(self, **kw)
Set a number of attributes simultaneously
source code
 
__str__(self)
str(x)
source code
 
ispolarized(self)
Indicates that the data is polarized data.
source code
 
isaligned(self)
Test if all four cross sections have the same Q values.
source code
 
log(self, msg)
Record corrections that have been applied to the data
source code
 
spin_asymmetry(self)
Return the spin asymmetry for the pp and mm crosssections.
source code

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

Class Variables
  vlabel = 'Reflectivity'
  vunits = None
  xlabel = 'Qz'
  xunits = 'inv A'
  ylabel = 'Qx'
  yunits = 'inv A'
  zlabel = 'Qy'
  zunits = 'inv A'
Properties

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)

spin_asymmetry(self)

source code 

Return the spin asymmetry for the pp and mm crosssections. This is a Data object with one data line.

TODO: support multidimensional data