Changeset 73a24fa in sasview for src/sas/qtgui


Ignore:
Timestamp:
Oct 26, 2017 6:46:36 AM (7 years 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:
d8c53fa3
Parents:
5fe52594
Message:

Start stealing from the unit tests

I still can't figure out how to get a proper Invertor object, but the
unit tests seem to be a good guide.

File:
1 edited

Legend:

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

    r5fe52594 r73a24fa  
    136136                print(msg) 
    137137                # logger.error(msg) 
     138 
     139        #Return the invertor to its original state 
    138140        self.pr_state.d_max = original 
     141        self.pr_state.invert(self.nfunc) 
    139142 
    140143        plotter = unicode(self.model.item(W.VARIABLE).text()) 
     
    173176    data = Loader().load("../../../../../test/pr_inversion/test/sphere_80.txt")[0] 
    174177    pr_state = Invertor() 
     178    pr_state.d_max = 160.0 
     179    pr_state.alpha = 0.0007 
    175180    pr_state.x = data.x 
    176181    pr_state.y = data.y 
    177     pr_state.err = data.dy+1e-3 
     182    pr_state.err = 0.15*np.sqrt(data.y) 
    178183 
    179     DLG = DmaxWindow(pr_state, 10, reactor) 
     184    DLG = DmaxWindow(pr_state, 15, reactor) 
    180185    DLG.show() 
    181186    reactor.run() 
Note: See TracChangeset for help on using the changeset viewer.