Changeset 6d920cd in sasview


Ignore:
Timestamp:
Feb 27, 2009 8:52:28 PM (15 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:
ed2ea6a
Parents:
8dddbd4
Message:

print statement removed

Location:
guiframe
Files:
2 added
3 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_loader.py

    r8bd764d r6d920cd  
    1 import os, sys 
     1import os, sys,numpy 
    22import wx 
    33from dataFitting import Data1D, Theory1D 
     
    2828        Load a 1D ascii file, with errors 
    2929    """ 
    30     import numpy 
    3130    if path and os.path.isfile(path): 
    3231     
     
    6362    return None, None, None 
    6463 
    65 def plot_data(parent, path, name="Loaded Data"): 
     64def plot_data(parent, path): 
     65    """ 
     66        Use the DataLoader loader to created data to plot. 
     67        @param path: the path of the data to load 
     68    """ 
    6669    from sans.guicomm.events import NewPlotEvent, StatusEvent 
    67     
    6870    from DataLoader.loader import  Loader 
    69     import numpy 
     71     
    7072    #Instantiate a loader  
    7173    L = Loader() 
     
    98100            new_plot.x_bins=output.x_bins 
    99101            new_plot.y_bins=output.y_bins 
    100             #print "data_loader",output 
    101102        else: 
    102             #print "output.dx, output.dy",output.dx, output.dy 
     103            
    103104            if output.dy ==None : 
    104105                new_plot = Theory1D(output.x,output.y, dxl, dxw) 
     
    109110                new_plot = Theory1D(output.x,output.y,output.dy, dxl, dxw) 
    110111            else: 
    111                      
    112112                new_plot = Data1D(x=output.x,y=output.y,dx=output.dx,dy=output.dy, dxl=dxl, dxw=dxw) 
    113         
     113        if output.filename==None: 
     114            output.filename=str(filename) 
    114115        new_plot.source=output.source 
    115116        new_plot.name = output.filename 
     
    121122        if hasattr(output, "dxw"): 
    122123            new_plot.dxw = output.dxw 
    123         #print "loader output.detector",output.source 
    124124        new_plot.detector =output.detector 
    125125         
     
    151151            
    152152            new_plot.source=item.source 
    153             #new_plot.info=output 
    154153            new_plot.name = str(item.run[0]) 
    155154            new_plot.interactive = True 
    156             
    157             #print "loader output.detector",output.source 
    158155            new_plot.detector =item.detector 
    159156            # If the data file does not tell us what the axes are, just assume... 
     
    162159            new_plot.group_id = str(item.run[0]) 
    163160            new_plot.id = str(item.run[0]) 
     161            new_plot.info= item 
     162             
    164163            if hasattr(item,"title"): 
    165164                title= item.title 
  • guiframe/gui_manager.py

    r700f9b4 r6d920cd  
    3535    import config 
    3636     
    37 from sans.guicomm.events import EVT_STATUS,Model2DPanelEvent 
     37from sans.guicomm.events import EVT_STATUS 
    3838from sans.guicomm.events import EVT_NEW_PLOT,EVT_SLICER_PARS_UPDATE 
    3939import history 
     
    224224        self.defaultPanel    = DefaultPanel(self, -1, style=wx.RAISED_BORDER) 
    225225         
    226         # History panel 
    227         #self.histPanel     = history.HistoryPanel(self, style=wx.RAISED_BORDER) 
    228         # self.build_gui() 
    229226        
    230227        # Register the close event so it calls our own method 
     
    297294        """ 
    298295        import imp 
    299         print "Looking for plug-ins in %s" % dir 
     296        #print "Looking for plug-ins in %s" % dir 
    300297        # List of plug-in objects 
    301298         
     
    368365        # It also sets the size of the application windows 
    369366        self.panels["default"] = self.defaultPanel 
    370          # History panel 
    371         #self.panels["historyPanel"] = self.histPanel   
    372367         
    373368        self._mgr.AddPane(self.defaultPanel, wx.aui.AuiPaneInfo(). 
     
    378373                              MinSize(wx.Size(self._window_width, self._window_height)). 
    379374                              Show()) 
    380         """ 
    381         self._mgr.AddPane(self.histPanel, wx.aui.AuiPaneInfo(). 
    382                           Name("historyPanel").Caption("History"). 
    383                           #Float(). 
    384                           Bottom(). 
    385                           Dock(). 
    386                           TopDockable(). 
    387                           BottomDockable(). 
    388                           LeftDockable(). 
    389                           RightDockable(). 
    390                           MinimizeButton(). 
    391                           Hide(). 
    392                           #Show(). 
    393                           BestSize(wx.Size(500,600)). 
    394                           MinSize(wx.Size(200,150))) 
    395         """ 
     375      
    396376 
    397377        # Add the panels to the AUI manager 
     
    410390                                          BestSize(wx.Size(600,600)). 
    411391                                          MinSize(wx.Size(400,400)). 
    412                                           #BestSize(wx.Size(500,500)). 
    413                                           #MinSize(wx.Size(200,200)). 
    414392                                          Hide()) 
    415393                 
     
    418396                self._mgr.AddPane(p, wx.aui.AuiPaneInfo(). 
    419397                                  Name(p.window_name).Caption(p.window_caption). 
    420                                   #Floatable(). 
    421                                   #Float(). 
    422398                                  Right(). 
    423399                                  Dock(). 
     
    428404                                  MinimizeButton(). 
    429405                                  Hide(). 
    430                                   #Show(). 
    431406                                  BestSize(wx.Size(600,600)). 
    432407                                  MinSize(wx.Size(500,500))) 
    433                                   #BestSize(wx.Size(400,400)). 
    434                                   #MinSize(wx.Size(300,300))) 
     408                                
    435409 
    436410                 
     
    516490        filemenu.Append(id, '&Open', 'Open a file') 
    517491        wx.EVT_MENU(self, id, self._on_open) 
    518          
    519         #id = wx.NewId() 
    520         #filemenu.Append(id, '&History', 'Register previous States') 
    521         #wx.EVT_MENU(self, id, self._onHistoryPanel) 
    522          
     492     
    523493        id = wx.NewId() 
    524494        filemenu.Append(id,'&Quit', 'Exit')  
     
    652622                 
    653623            self._mgr.Update() 
    654     """ 
    655     def _onHistoryPanel(self, event): 
    656         print "on history" 
    657         if not self._mgr.GetPane("historyPanel").IsShown(): 
    658             self._mgr.GetPane("historyPanel").Show() 
    659         self._mgr.Update() 
    660         return 
    661     """    
     624    
    662625    def _on_open(self, event): 
    663626    
  • guiframe/local_perspectives/plotting/AnnulusSlicer.py

    r18eba35 r6d920cd  
    122122        rmax = max(math.fabs(self.inner_circle.get_radius()), 
    123123                   math.fabs(self.outer_circle.get_radius())) 
    124         print "rmin, rmax", rmin, rmax 
     124        #print "rmin, rmax", rmin, rmax 
    125125        if nbins==None: 
    126126            nbins = 20 
  • guiframe/local_perspectives/plotting/Plotter1D.py

    r8bd764d r6d920cd  
    263263        slicerpop.Append(id, '&Reset Graph') 
    264264        wx.EVT_MENU(self, id, self.onResetGraph)   
    265         """ 
    266         slicerpop.AppendSeparator()  
    267         id = wx.NewId() 
    268         slicerpop.Append(id,'&Printer setup', 'Set image size') 
    269         wx.EVT_MENU(self, id, self.onPrinterSetup) 
    270          
    271         id = wx.NewId() 
    272         slicerpop.Append(id,'&Printer Preview', 'Set image size') 
    273         wx.EVT_MENU(self, id, self.onPrinterPreview) 
    274         """ 
     265        
    275266         
    276267 
  • guiframe/local_perspectives/plotting/Plotter2D.py

    r8bd764d r6d920cd  
    9393         
    9494    def _onEVT_SLICER_PARS(self, event): 
    95         print "paramaters entered on slicer panel", event.type, event.params 
     95        #print "paramaters entered on slicer panel", event.type, event.params 
    9696        self.slicer.set_params(event.params) 
    9797        #from sans.guicomm.events import SlicerPanelEvent 
     
    247247        slicerpop.AppendSeparator()  
    248248        
    249         """ 
    250         # Option to save the data displayed 
    251         id = wx.NewId() 
    252         slicerpop.Append(id,'&Printer setup', 'Set image size') 
    253         wx.EVT_MENU(self, id, self.onPrinterSetup) 
    254          
    255         
    256         """ 
     249      
    257250        id = wx.NewId() 
    258251        slicerpop.Append(id, '&Toggle Linear/Log scale') 
     
    265258    
    266259    def _onEditDetector(self, event): 
    267         print "edit detortor param",self.zmin_2D, self.zmax_2D 
     260        """ 
     261        """ 
     262        #print "edit detortor param",self.zmin_2D, self.zmax_2D 
    268263        import detector_dialog 
    269264        dialog = detector_dialog.DetectorDialog(self, -1,base=self.parent) 
     
    286281        
    287282        dialog.Destroy() 
    288         print "zmn ,zmax", self.zmin_2D, self.zmax_2D 
     283        #print "zmn ,zmax", self.zmin_2D, self.zmax_2D 
    289284        self.image(data= self.data2D.data, 
    290285                   xmin= self.data2D.xmin, 
  • guiframe/local_perspectives/plotting/boxSum.py

    r18eba35 r6d920cd  
    7474        #print "box sum  self.base.parent",self.base.parent 
    7575        self.base.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 
     76         
    7677    def set_panel_name(self, name): 
    7778        self.panel_name= name 
     79         
     80         
    7881    def _onEVT_SLICER_PARS(self, event): 
    7982        wx.PostEvent(self.base.parent, StatusEvent(status="Boxsum._onEVT_SLICER_PARS")) 
    80         print "receiving value ",event.params 
     83        #print "receiving value ",event.params 
    8184        event.Skip() 
    8285        if event.type == self.__class__.__name__: 
     
    157160        y_min= self.vertical_lines.y2 
    158161        y_max= self.vertical_lines.y1 
    159         print "xmin, xmax, ymin , ymax", x_min, x_max, y_min, y_max 
     162        #print "xmin, xmax, ymin , ymax", x_min, x_max, y_min, y_max 
    160163        box =  Boxavg (x_min=x_min, x_max=x_max, y_min=y_min, y_max=y_max) 
    161164        self.count, self.error = box(self.base.data2D) 
    162         print "box_sum output",box(self.base.data2D) 
     165        #print "box_sum output",box(self.base.data2D) 
    163166                           
    164167    def moveend(self, ev): 
  • guiframe/local_perspectives/plotting/plotting.py

    r50cbace r6d920cd  
    108108                        is_available = True 
    109109                         
    110                          
    111110                        panel._onEVT_1DREPLOT(event) 
    112111                        self.parent.show_panel(panel.uid) 
    113                         print "went here for replottiing", event.plot.name 
     112                        #print "went here for replottiing", event.plot.name 
    114113                         
    115114                else: 
     
    125124                from Plotter1D import ModelPanel1D 
    126125                if hasattr(event.plot,"xtransform"): 
    127                     print "went here" 
     126                    #print "went here" 
    128127                    xtransform = event.plot.xtransform 
    129128                else: 
  • guiframe/model_thread.py

    r700f9b4 r6d920cd  
    163163                       "Error computing %s at [%g,%g]" %(self.model.name, self.x[i_x],self.y[i_y]))) 
    164164                     pass 
    165         print "model thread ouput",output        
     165        #print "model thread ouput",output        
    166166        elapsed = time.time()-self.starttime 
    167167        self.complete( 
Note: See TracChangeset for help on using the changeset viewer.