qsmearing

DataLoader.qsmearing

class DataLoader.qsmearing.QSmearer(data1D)

Bases: DataLoader.qsmearing._QSmearer

Adaptor for Gaussian Q smearing class and SANS data

get_bin_range(q_min=None, q_max=None)
Parameters:
  • q_min – minimum q-value to smear
  • q_max – maximum q-value to smear
get_unsmeared_range(q_min, q_max)
Determine the range needed in unsmeared-Q to cover the smeared Q range Take 3 sigmas as the offset between smeared and unsmeared space
class DataLoader.qsmearing.SlitSmearer(data1D)

Bases: DataLoader.qsmearing._SlitSmearer

Adaptor for slit smearing class and SANS data

get_bin_range(q_min=None, q_max=None)
Parameters:
  • q_min – minimum q-value to smear
  • q_max – maximum q-value to smear
get_unsmeared_range(q_min, q_max)
Determine the range needed in unsmeared-Q to cover the smeared Q range
DataLoader.qsmearing.smear_selection(data1D)

Creates the right type of smearer according to the data.

The canSAS format has a rule that either slit smearing data OR resolution smearing data is available.

For the present purpose, we choose the one that has none-zero data. If both slit and resolution smearing arrays are filled with good data (which should not happen), then we choose the resolution smearing data.

Parameters:
  • data1D – Data1D object

Table Of Contents

Previous topic

manipulations

Next topic

smearing_2d

This Page