ReflectivityIIModel

sans.models.ReflectivityIIModel

class sans.models.ReflectivityIIModel.ReflectivityIIModel

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.

__add__()
__div__()
__init__()
__module__ = 'sans.models.ReflectivityIIModel'
__mul__()
__str__()
Returns:string representatio
__sub__()
_clone()

Internal utility function to copy the internal data members to a fresh copy.

_get_func_list()

Get the list of functions in each layer (shell)

_get_sld()

Get the function asked to build sld profile : param func_idx: func type number : param n_sub: total number of sub_layer : param n_s: index of sub_layer : param nu: coefficient of the function : param sld_l: sld on the left side : param sld_r: sld on the right side : return: sld value, float

_setParamHelper()

Helper function to setParam

_set_details()

Concatenate details of the original model to create this model details

_set_dispersion()

model dispersions

_set_fixed_params()

Fill the self.fixed list with the model fixed list

_set_params()

Concatenate the parameters of the model to create this model parameters

_set_xtra_model_param()

Set params of original model that are hidden from this model

calculate_ER()
clone()

Returns a new object identical to the current object

evalDistribution()

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()

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()
getParamWithToken()
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()

Check if a given parameter is fittable or not

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

Evaluate the model

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

Evaluate the model

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

setParam()

Set the value of a model parameter

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

setParamWithToken()
set_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