ReflectivityIIModel

sans.models.ReflectivityIIModel

class sans.models.ReflectivityIIModel.ReflectivityIIModel(multfactor=1)

Bases: sans.models.BaseComponent.BaseComponent

This multi-model is based on Parratt formalism and provides the capability of changing the number of layers between 0 and 10.

calculate_ER()
clone()

Returns a new object identical to the current object

evalDistribution(x=[])

Evaluate the model in cartesian coordinates

: param x: input q[], or [qx[], qy[]] : return: scattering function P(q[])

getDispParamList()

Return a list of all available parameters for the model

getParam(name)

Set the value of a model parameter

Parameters:name – name of the parameter
getParamList()

Return a list of all available parameters for the model

getParamListWithToken(token, member)
getParamWithToken(name, token, member)
getProfile()

Get SLD profile

: return: (z, beta) where z is a list of depth of the transition points
beta is a list of the corresponding SLD values
is_fittable(par_name)

Check if a given parameter is fittable or not

Parameters:par_name – the parameter name to check
run(x=0.0)

Evaluate the model

Parameters:x – input q, or [q,phi]
Returns:scattering function P(q)
runXY(x=0.0)

Evaluate the model

: param x: input q-value (float or [float, float] as [qx, qy]) : return: scattering function value

setParam(name, value)

Set the value of a model parameter

: param name: name of the parameter : param value: value of the parameter

setParamWithToken(name, value, token, member)
set_dispersion(parameter, dispersion)

Set the dispersion object for a model parameter

: param parameter: name of the parameter [string] :dispersion: dispersion object of type DispersionModel

Table Of Contents

Previous topic

ReflAdvModel

Next topic

ReflectivityModel

This Page