LamellarPCrystalModel

sans.models.LamellarPCrystalModel

Provide functionality for a C extension model

WARNING:THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY ..c_extensionslamellarPC.h AND RE-RUN THE GENERATOR SCRIPT
class sans.models.LamellarPCrystalModel.LamellarPCrystalModel

Bases: CLamellarPCrystalModel, sans.models.BaseComponent.BaseComponent

Class that evaluates a LamellarPCrystalModel model. This file was auto-generated from ..c_extensionslamellarPC.h. Refer to that file and the structure it contains for details of the model. List of default parameters:

scale = 1.0 thickness = 33.0 [A] Nlayers = 20.0 spacing = 250.0 [A] pd_spacing = 0.0 sld_layer = 1e-06 [1/A^(2)] sld_solvent = 6.34e-06 [1/A^(2)] background = 0.0 [1/cm]
__add__()
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = <dictproxy object at 0x026F21D0>
__div__()
__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__

x.__hash__() <==> hash(x)

__init__()

Initialization

__module__ = 'sans.models.LamellarPCrystalModel'
__mul__()
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

Overwrite the __reduce_ex__ of PyTypeObject *type call in the init of c model.

__repr__

x.__repr__() <==> repr(x)

__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__setstate__()

restore the state of a model from pickle

__str__

x.__str__() <==> str(x)

__sub__()
__weakref__

list of weak references to the object (if defined)

_clone()

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

calculate_ER()

Calculate the effective radius for P(q)*S(q)

Returns:the value of the effective radius
clone()

Return a identical copy of self

dispersion

Dispersion parameters

evalDistribution()

Evaluate the model in cartesian coordinates

Parameters:x – input q[], or [qx[], qy[]]
Returns: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()
is_fittable()

Check if a given parameter is fittable or not

Parameters:par_name – the parameter name to check
log

Log

params

Parameters

reset()

Reset pair correlation

run()

Evaluate the model

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

Evaluate the model in cartesian coordinates

Parameters:x – input q, or [qx, qy]
Returns:scattering function P(q)
setParam()

Set the value of a model parameter

Parameters:
  • name – name of the parameter
  • value – value of the parameter
setParamWithToken()
set_dispersion()

Set the dispersion object for a model parameter

Parameters:
  • parameter – name of the parameter [string]
  • dispersion – dispersion object of type DispersionModel
sans.models.LamellarPCrystalModel.create_LamellarPCrystalModel()

Table Of Contents

Previous topic

LamellarModel

Next topic

LamellarPSHGModel

This Page