Changeset f7e6b30 in sasview for src/sas/sascalc/corfunc


Ignore:
Timestamp:
Mar 26, 2019 5:42:44 AM (6 years ago)
Author:
awashington
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl
Children:
4acca8c
Parents:
4b796b8
Message:

Remote artificial limits on corfunc range.

With the new navigation toolbars, they aren't needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/corfunc/transform_thread.py

    ra859f99 rf7e6b30  
    4545            # gamma3(R) = 1/R int_{0}^{R} gamma1(x) dx 
    4646            # trapz uses the trapezium rule to calculate the integral 
    47             mask = xs <= 200.0 # Only calculate gamma3 up to x=200 (as this is all that's plotted) 
    4847            # gamma3 = [trapz(gamma1[:n], xs[:n])/xs[n-1] for n in range(2, len(xs[mask]) + 1)]j 
    4948            # gamma3.insert(0, 1.0) # Gamma_3(0) is defined as 1 
    50             n = len(xs[mask]) 
     49            n = len(xs) 
    5150            gamma3 = cumtrapz(gamma1[:n], xs[:n])/xs[1:n] 
    5251            gamma3 = np.hstack((1.0, gamma3)) # Gamma_3(0) is defined as 1 
     
    7978 
    8079        transform1 = Data1D(xs, gamma1) 
    81         transform3 = Data1D(xs[xs <= 200], gamma3) 
     80        transform3 = Data1D(xs, gamma3) 
    8281        idf = Data1D(xs, idf) 
    8382 
Note: See TracChangeset for help on using the changeset viewer.