Package reflectometry :: Package model1d :: Package model :: Module layer :: Class SlopeLayer

Class SlopeLayer

source code


Sloping section of reflectometry profile
Instance Methods
 
__init__(self, name="Slope", Val=1.0, span=1)
Create a sloping layer for a profile.
source code
 
calc(self, thickness, z)
Compute the values for the profile at depth z (scalar or array).
source code

Inherited from _Layer: getValue, setValue, toFloatValue

Method Details

__init__(self, name="Slope", Val=1.0, span=1)
(Constructor)

source code 

Create a sloping layer for a profile. It has a single tuple v indicating the value at the ends of the layer.

The optional span indicates how many model layers are spanned by this portion of the profile.

TODO: line should pick up it's end points from surrounding layers.

Overrides: _Layer.__init__

calc(self, thickness, z)

source code 
Compute the values for the profile at depth z (scalar or array).
Overrides: _Layer.calc