Changeset d8c53fa3 in sasview


Ignore:
Timestamp:
Oct 26, 2017 9:24:13 AM (21 months ago)
Author:
Adam Washington <adam.washington@…>
Branches:
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
Children:
f582224
Parents:
73a24fa
Message:

More closely match unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/PrInversion/dmax.py

    r73a24fa rd8c53fa3  
    121121            self.pr_state.d_max = x 
    122122            try: 
    123                 out, cov = self.pr_state.invert(self.nfunc) 
     123                out, cov = self.pr_state.invert(self.pr_state.nfunc) 
    124124 
    125125                iq0.append(self.pr_state.iq0(out)) 
     
    174174    from sas.sascalc.dataloader.loader import Loader 
    175175 
    176     data = Loader().load("../../../../../test/pr_inversion/test/sphere_80.txt")[0] 
     176    data = Loader().load("test/pr_inversion/test/sphere_80.txt")[0] 
    177177    pr_state = Invertor() 
    178     pr_state.d_max = 160.0 
     178    pr_state.d_max = 130.0 
    179179    pr_state.alpha = 0.0007 
    180180    pr_state.x = data.x 
    181181    pr_state.y = data.y 
    182     pr_state.err = 0.15*np.sqrt(data.y) 
     182    pr_state.err = 0.15*data.y 
     183    pr_state.nfunc = 15 
     184 
     185    print(data.x, data.y, 0.15*np.sqrt(data.y)) 
    183186 
    184187    DLG = DmaxWindow(pr_state, 15, reactor) 
Note: See TracChangeset for help on using the changeset viewer.