Changeset ce64735 in sasview for guiframe


Ignore:
Timestamp:
Nov 17, 2008 8:19:11 AM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
9696b075
Parents:
4ce29e0
Message:

small changes not committed

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_loader.py

    r743d75c rce64735  
    8989     
    9090    filename = os.path.basename(path) 
    91     new_plot.source=output    
     91    new_plot.source=output.source 
    9292    new_plot.name = filename 
    9393    new_plot.interactive = True 
    94     print "loader output.detector",output.detector 
     94    #print "loader output.detector",output.source 
    9595    new_plot.detector =output.detector 
    9696    # If the data file does not tell us what the axes are, just assume... 
  • guiframe/local_perspectives/plotting/DataPanel.py

    r35d1092 rce64735  
    1616from danse.common.plottools.plottables import Graph,Data1D 
    1717from sans.guicomm.events import EVT_NEW_PLOT 
    18 from sans.guicomm.events import StatusEvent  
     18from sans.guicomm.events import StatusEvent ,NewPlotEvent 
    1919 
    2020class PanelMenu(wx.Menu): 
     
    514514       
    515515        id = wx.NewId() 
    516         slicerpop.Append(id, '&Line slicer [Q-view]') 
    517         wx.EVT_MENU(self, id, self.onLineSlicer)  
    518          
    519         id = wx.NewId() 
    520         slicerpop.Append(id, '&Annulus slicer [Phi-view]') 
    521         wx.EVT_MENU(self, id, self.onAnnulusSlicer)  
    522          
    523         id = wx.NewId() 
    524         slicerpop.Append(id, '&Clear slicer') 
    525         wx.EVT_MENU(self, id, self.onClearSlicer)  
    526          
    527         id = wx.NewId() 
    528         slicerpop.Append(id, '&Edit Parameters') 
    529         wx.EVT_MENU(self, id, self._onEditDetector)  
     516        slicerpop.Append(id, '&sector averaging') 
     517        wx.EVT_MENU(self, id, self.onSectorSlicer)  
     518         
     519     
    530520         
    531521        pos = event.GetPosition() 
     
    534524    
    535525 
    536     def onLineSlicer(self, event): 
     526    def onSectorSlicer(self, event): 
    537527        print "onLineSlicer" 
    538          
    539     def onAnnulusSlicer(self, event): 
    540         print "onAnnulusSlicer" 
    541     def onClearSlicer(self, event): 
    542         print "onClearSlicer" 
    543     def _onEditDetector(self, event): 
    544         print "_onEditDetector" 
    545     def onSaveImage(self, event): 
    546         print "onSaveImage" 
    547     def _onToggleScale(self, event): 
    548         print "_onToggleScale" 
    549     def _onToggleEnable(self, event): 
    550         print "_onToggleEnable" 
     528        import math 
     529        from DataLoader.manipulations import SectorPhi 
     530        for item in self.graph.plottables: 
     531            r= SectorPhi(005,.01, 0.0, math.pi/2.0) 
     532            print r(item) 
     533            data=r(item) 
     534        new_plot= Data1D(x=data.x,y=data.y,dy=data.dy ) 
     535        new_plot.name = "sector" 
     536        new_plot.group_id= "sector" 
     537        #wx.PostEvent(self.parent, NewPlotEvent(plot=r(item), title="Analytical model")) 
     538        wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, title="Analytical model")) 
     539         
     540         
     541         
Note: See TracChangeset for help on using the changeset viewer.