mcsas.dataobj.sasconfig module

class GaussianSmearing[source]

Bases: dataobj.sasconfig.SmearingConfig

inputValid()[source]

Warning

method ‘dataobj.sasconfig.GaussianSmearing.inputValid’ undocumented

parameters = (None,)
setIntPoints(q)[source]

Sets smearing profile integration points for trapezoidal slit. Top (umbra) of trapezoid has full width xt, bottom of trapezoid (penumbra) has full width. Since the smearing function is assumed to be symmetrical, the integration parameters are calculated in the interval [0, xb/2]

showParams

A list of parameter names which defines the parameters and their ordering shown in a UI. To be overridden in sub classes.

updatePLimits(pLimit)[source]

Warning

method ‘dataobj.sasconfig.GaussianSmearing.updatePLimits’ undocumented

updatePUnit(newUnit)[source]

Warning

method ‘dataobj.sasconfig.GaussianSmearing.updatePUnit’ undocumented

updateQLimits(qLimit)[source]

Warning

method ‘dataobj.sasconfig.GaussianSmearing.updateQLimits’ undocumented

updateQUnit(newUnit)[source]

Warning

method ‘dataobj.sasconfig.GaussianSmearing.updateQUnit’ undocumented

updateSmearingLimits(q)[source]

Warning

method ‘dataobj.sasconfig.GaussianSmearing.updateSmearingLimits’ undocumented

Parameter(*args, **kwargs)

Warning

function ‘dataobj.sasconfig.Parameter’ undocumented

class SASConfig(*args, **kwargs)[source]

Bases: dataobj.dataconfig.DataConfig

hdfWrite(hdf)[source]

Warning

method ‘dataobj.sasconfig.SASConfig.hdfWrite’ undocumented

onUpdatedX0(x0)[source]

Sets available range of loaded data.

onUpdatedX1(x1)[source]

Warning

method ‘dataobj.sasconfig.SASConfig.onUpdatedX1’ undocumented

prepareSmearing(q)[source]

Warning

method ‘dataobj.sasconfig.SASConfig.prepareSmearing’ undocumented

shortName = 'SAS data configuration'
showParams

A list of parameter names which defines the parameters and their ordering shown in a UI. To be overridden in sub classes.

smearing
updateX0Unit(newUnit)[source]

Sets the unit of the x0 vector.

updateX1Unit(newUnit)[source]

Warning

method ‘dataobj.sasconfig.SASConfig.updateX1Unit’ undocumented

class SmearingConfig[source]

Bases: bases.algorithm.algorithmbase.AlgorithmBase

Abstract base class, can’t be instantiated.

Creates instances from defined parameters and replaces the class attributes accordingly.

hdfWrite(hdf)[source]

Warning

method ‘dataobj.sasconfig.SmearingConfig.hdfWrite’ undocumented

parameters = (None, None, None)
prepared
qOffset
shortName = 'SAS smearing configuration'
updatePLimits(pLimit)[source]

Warning

method ‘dataobj.sasconfig.SmearingConfig.updatePLimits’ undocumented

updatePUnit(newUnit)[source]

Warning

method ‘dataobj.sasconfig.SmearingConfig.updatePUnit’ undocumented

updateQLimits(qLimit)[source]

Warning

method ‘dataobj.sasconfig.SmearingConfig.updateQLimits’ undocumented

updateQUnit(newUnit)[source]

Warning

method ‘dataobj.sasconfig.SmearingConfig.updateQUnit’ undocumented

updateSmearingLimits(q)[source]

Warning

method ‘dataobj.sasconfig.SmearingConfig.updateSmearingLimits’ undocumented

weights
class TrapezoidSmearing[source]

Bases: dataobj.sasconfig.SmearingConfig

halfTrapzPDF(x, c, d)[source]

Warning

method ‘dataobj.sasconfig.TrapezoidSmearing.halfTrapzPDF’ undocumented

inputValid()[source]

Warning

method ‘dataobj.sasconfig.TrapezoidSmearing.inputValid’ undocumented

onUmbraUpdate()[source]

Value in umbra will not exceed available q.

parameters = (None, None)
setIntPoints(q)[source]

sets smearing profile integration points for trapezoidal slit. Top (umbra) of trapezoid has full width xt, bottom of trapezoid (penumbra) has full width. Since the smearing function is assumed to be symmetrical, the integration parameters are calculated in the interval [0, xb/2]

showParams

A list of parameter names which defines the parameters and their ordering shown in a UI. To be overridden in sub classes.

updatePLimits(pLimit)[source]

Warning

method ‘dataobj.sasconfig.TrapezoidSmearing.updatePLimits’ undocumented

updatePUnit(newUnit)[source]

Warning

method ‘dataobj.sasconfig.TrapezoidSmearing.updatePUnit’ undocumented

updateQLimits(qLimit)[source]

Warning

method ‘dataobj.sasconfig.TrapezoidSmearing.updateQLimits’ undocumented

updateQUnit(newUnit)[source]

Warning

method ‘dataobj.sasconfig.TrapezoidSmearing.updateQUnit’ undocumented

updateSmearingLimits(q)[source]

Warning

method ‘dataobj.sasconfig.TrapezoidSmearing.updateSmearingLimits’ undocumented