Changeset 3e20577 in sasview


Ignore:
Timestamp:
Oct 26, 2017 3:30:11 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:
4aa62c8
Parents:
6060a86
Message:

Actually Plot Something

File:
1 edited

Legend:

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

    r6060a86 r3e20577  
    111111                         float(self.model.item(W.NPTS).text())) 
    112112 
     113        original = self.pr_state.d_max 
    113114        for x in xs: 
    114115            self.pr_state.d_max = x 
     
    127128                print(msg) 
    128129                # logger.error(msg) 
     130        self.pr_state.d_max = original 
     131 
    129132        self.plot.plot(data=Data1D(xs, rg), marker="-") 
    130133 
     
    138141    from twisted.internet import reactor 
    139142    from sas.sascalc.pr.invertor import Invertor 
     143    from sas.sascalc.dataloader.loader import Loader 
     144 
     145    data = Loader().load("../../../../../test/pr_inversion/test/sphere_80.txt")[0] 
    140146    pr_state = Invertor() 
     147    pr_state.x = data.x 
     148    pr_state.y = data.y 
     149    pr_state.err = data.dy+1e-3 
     150 
    141151    DLG = DmaxWindow(pr_state, 10, reactor) 
    142152    DLG.show() 
Note: See TracChangeset for help on using the changeset viewer.