sas.sascalc.corfunc package

Submodules

sas.sascalc.corfunc.corfunc_calculator module

This module implements corfunc

class sas.sascalc.corfunc.corfunc_calculator.CorfuncCalculator(data=None, lowerq=None, upperq=None, scale=1)[source]

Bases: object

compute_background(upperq=None)[source]

Compute the background level from the Porod region of the data

compute_extrapolation()[source]

Extrapolate and interpolate scattering data

Returns:The extrapolated data
compute_transform(extrapolation, trans_type, background=None, completefn=None, updatefn=None)[source]

Transform an extrapolated scattering curve into a correlation function.

Parameters:
  • extrapolation – The extrapolated data
  • background – The background value (if not provided, previously calculated value will be used)
  • extrap_fn – A callable function representing the extraoplated data
  • completefn – The function to call when the transform calculation is complete
  • updatefn – The function to call to update the GUI with the status of the transform calculation
Returns:

The transformed data

extract_parameters(transformed_data)[source]

Extract the interesting measurements from a correlation function

Parameters:transformed_data – Fourier transformation of the extrapolated data
set_data(data, scale=1)[source]

Prepares the data for analysis

Returns:new_data = data * scale - background
stop_transform()[source]
transform_isrunning()[source]

sas.sascalc.corfunc.transform_thread module

class sas.sascalc.corfunc.transform_thread.FourierThread(raw_data, extrapolated_data, bg, updatefn=None, completefn=None)[source]

Bases: sas.sascalc.data_util.calcthread.CalcThread

check_if_cancelled()[source]
compute()[source]
class sas.sascalc.corfunc.transform_thread.HilbertThread(raw_data, extrapolated_data, bg, updatefn=None, completefn=None)[source]

Bases: sas.sascalc.data_util.calcthread.CalcThread

compute()[source]

Module contents