Changeset d6da3b1 in sasview for sansmodels/src/sans


Ignore:
Timestamp:
Jan 6, 2011 3:45:00 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
2ca00c4
Parents:
535752b
Message:

fixed a bug, not properly displaying sldprofile when a negative exponent was set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/ReflectivityIIModel.py

    r96656e3 rd6da3b1  
    44from copy import deepcopy 
    55from math import floor 
     6from math import fabs 
    67from scipy.special import erf 
    78func_list = {'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, \ 
     
    205206                    else: 
    206207                        dz = self.params['thick_inter%s'% str(i-1)]/n_sub 
    207                         nu = self.params['nu_inter%s'% str(i-1)] 
     208                        nu = fabs(self.params['nu_inter%s'% str(i-1)]) 
    208209                        if n_s == 0: 
    209210                            # shift half sub thickness for the point 
Note: See TracChangeset for help on using the changeset viewer.