smearing_2d

sans.models.smearing_2d

class sans.models.smearing_2d.Smearer2D

Gaussian Q smearing class for SANS 2d data

__init__()

Assumption: equally spaced bins in dq_r, dq_phi space.

Parameters:
  • data – 2d data used to set the smearing parameters
  • model – model function
  • index – 1d array with len(data) to define the range of the calculation: elements are given as True or False
  • nr – number of bins in dq_r-axis
  • nphi – number of bins in dq_phi-axis
  • coord – coordinates [string], ‘polar’ or ‘cartesian’
  • engine – engine name [string]; ‘c’ or ‘numpy’
__module__ = 'sans.models.smearing_2d'
get_data()

get qx_data, qy_data, dqx_data,dqy_data,and calculate phi_data=arctan(qx_data/qy_data)

get_value()

Over sampling of r_nbins times phi_nbins, calculate Gaussian weights, then find smeared intensity

set_accuracy()

Set accuracy.

Parameters:accuracy – string
set_data()

Set data.

Parameters:data – DataLoader.Data_info type
set_index()

Set index.

Parameters:index – 1d arrays
set_model()

Set model.

Parameters:model – sans.models instance
set_smearer()

Set whether or not smearer will be used

Parameters:smearer – smear object

Table Of Contents

Previous topic

SLDCalFunc

Next topic

SphereModel

This Page