Changes in / [8d3d20a:0639476] in sasview


Ignore:
Files:
22 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/source/user/analysis.rst

    rec860a8f rec860a8f  
    88.. toctree:: 
    99   :maxdepth: 1 
    10  
     10    
    1111   Model Fitting <sasgui/perspectives/fitting/fitting> 
    12  
     12    
    1313   P(r) Inversion <sasgui/perspectives/pr/pr_help> 
    14  
     14    
    1515   Invariant Calculation <sasgui/perspectives/invariant/invariant_help> 
    16  
    17    Correlation Function <sasgui/perspectives/corfunc/corfunc_help> 
  • sasview/local_config.py

    rc1fdf84 rc1fdf84  
    9595GUIFRAME_WIDTH = 1150 
    9696GUIFRAME_HEIGHT = 840 
    97 PLUGIN_STATE_EXTENSIONS = ['.fitv', '.inv', '.prv', '.cor'] 
     97PLUGIN_STATE_EXTENSIONS = ['.fitv', '.inv', '.prv'] 
    9898PLUGINS_WLIST = ['Fitting files (*.fitv)|*.fitv', 
    9999                 'Invariant files (*.inv)|*.inv', 
    100                  'P(r) files (*.prv)|*.prv', 
    101                  'Corfunc files (*.cor)|*.cor'] 
     100                 'P(r) files (*.prv)|*.prv'] 
    102101PLOPANEL_WIDTH = 415 
    103102PLOPANEL_HEIGTH = 370 
  • sasview/sasview.py

    rcde6e52 rcde6e52  
    148148            logging.error(traceback.format_exc()) 
    149149 
    150         # Corfunc perspective 
    151         try: 
    152             import sas.sasgui.perspectives.corfunc as module 
    153             corfunc_plug = module.Plugin() 
    154             self.gui.add_perspective(corfunc_plug) 
    155         except: 
    156             logging.error("Unable to load corfunc module") 
    157  
    158150        #Calculator perspective 
    159151        try: 
  • src/sas/sasgui/guiframe/events.py

    r6ffa0dd rd85c194  
    88# plot Qrange 
    99(PlotQrangeEvent, EVT_PLOT_QRANGE) = wx.lib.newevent.NewEvent() 
    10 # set plot limits 
    11 (PlotLimitEvent, EVT_PLOT_LIM) = wx.lib.newevent.NewEvent() 
    1210# print the messages on statusbar 
    1311(StatusEvent,  EVT_STATUS)   = wx.lib.newevent.NewEvent() 
    14 #create a panel slicer 
     12#create a panel slicer  
    1513(SlicerPanelEvent, EVT_SLICER_PANEL)   = wx.lib.newevent.NewEvent() 
    16 #print update paramaters for panel slicer 
     14#print update paramaters for panel slicer  
    1715(SlicerParamUpdateEvent, EVT_SLICER_PARS_UPDATE)   = wx.lib.newevent.NewEvent() 
    18 #update the slicer from the panel 
     16#update the slicer from the panel  
    1917(SlicerParameterEvent, EVT_SLICER_PARS)   = wx.lib.newevent.NewEvent() 
    2018#slicer event 
  • src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py

    r245ae18 r895c9cb  
    9595        self.parent.SetFocus() 
    9696 
    97         # If true, there are 3 qrange bars 
    98         self.is_corfunc = False 
    99  
    10097 
    10198    def get_symbol_label(self): 
     
    217214        if active_ctrl == None: 
    218215            return 
    219         if hasattr(event, 'is_corfunc'): 
    220             self.is_corfunc = event.is_corfunc 
    221216        if event.id in self.plots.keys(): 
    222217            ctrl = event.ctrl 
     
    227222            values = [max(x_data.min(), float(ctrl[0].GetValue())), 
    228223                      min(x_data.max(), float(ctrl[1].GetValue()))] 
    229             if len(ctrl) == 3: 
    230                 colors.append('purple') 
    231                 values.append(min(x_data.max(), float(ctrl[2].GetValue()))) 
    232224            if self.ly == None: 
    233225                self.ly = [] 
     
    240232                xval = float(active_ctrl.GetValue()) 
    241233                position = self.get_data_xy_vals(xval) 
    242                 if position != None and not self.is_corfunc: 
     234                if position != None: 
    243235                    wx.PostEvent(self.parent, StatusEvent(status=position)) 
    244236            except: 
     
    301293        ly0x = ly[0].get_xdata() 
    302294        ly1x = ly[1].get_xdata() 
    303         ly2x = None 
    304         if self.is_corfunc: ly2x = ly[2].get_xdata() 
    305295        self.q_ctrl[0].SetBackgroundColour('white') 
    306296        self.q_ctrl[1].SetBackgroundColour('white') 
     
    316306                self.q_ctrl[0].SetValue(str(pos_x)) 
    317307                self.q_ctrl[1].SetBackgroundColour('pink') 
    318         elif ly2x is not None and ly1x >= ly2x: 
    319             if self.vl_ind == 1: 
    320                 ly[2].set_xdata(posx) 
    321                 ly[2].set_zorder(nop) 
    322                 self.q_ctrl[2].SetValue(str(pos_x)) 
    323             elif self.vl_ind == 2: 
    324                 ly[1].set_xdata(posx) 
    325                 ly[1].set_zorder(nop) 
    326                 self.q_ctrl[1].SetValue(str(pos_x)) 
    327  
    328308 
    329309    def _get_cusor_lines(self, event): 
     
    345325            dqmin = math.fabs(event.xdata - self.ly[0].get_xdata()) 
    346326            dqmax = math.fabs(event.xdata - self.ly[1].get_xdata()) 
    347             if not self.is_corfunc: 
    348                 is_qmax = dqmin > dqmax 
    349                 if is_qmax: 
    350                     self.vl_ind = 1 
    351                 else: 
    352                     self.vl_ind = 0 
     327            is_qmax = dqmin > dqmax 
     328            if is_qmax: 
     329                self.vl_ind = 1 
    353330            else: 
    354                 dqmax2 = math.fabs(event.xdata - self.ly[2].get_xdata()) 
    355                 closest = min(dqmin, dqmax, dqmax2) 
    356                 self.vl_ind = { dqmin: 0, dqmax: 1, dqmax2: 2 }.get(closest) 
     331                self.vl_ind = 0 
    357332 
    358333    def cusor_line(self, event): 
  • src/sas/sasgui/guiframe/local_perspectives/plotting/plotting.py

    r6ffa0dd rd85c194  
    1616from sas.sasgui.guiframe.events import EVT_NEW_PLOT 
    1717from sas.sasgui.guiframe.events import EVT_PLOT_QRANGE 
    18 from sas.sasgui.guiframe.events import EVT_PLOT_LIM 
    1918from sas.sasgui.guiframe.events import DeletePlotPanelEvent 
    2019from sas.sasgui.guiframe.plugin_base import PluginBase 
     
    8079        self.parent.Bind(EVT_NEW_PLOT, self._on_plot_event) 
    8180        self.parent.Bind(EVT_PLOT_QRANGE, self._on_plot_qrange) 
    82         self.parent.Bind(EVT_PLOT_LIM, self._on_plot_lim) 
    8381        # We have no initial panels for this plug-in 
    8482        return [] 
     
    9795            return 
    9896        panel.on_plot_qrange(event) 
    99  
    100     def _on_plot_lim(self, event=None): 
    101         if event == None: 
    102             return 
    103         if event.id in self.plot_panels.keys(): 
    104             panel = self.plot_panels[event.id] 
    105         elif event.group_id in self.plot_panels.keys(): 
    106             panel = self.plot_panels[event.group_id] 
    107         else: 
    108             return 
    109         if hasattr(event, 'xlim'): 
    110             panel.subplot.set_xlim(event.xlim) 
    111         if hasattr(event, 'ylim'): 
    112             panel.subplot.set_ylim(event.ylim) 
    113  
    11497 
    11598    def _on_show_panel(self, event): 
     
    329312                new_panel = self.create_2d_panel(data, group_id) 
    330313            self.create_panel_helper(new_panel, data, group_id, title) 
    331             if hasattr(event, 'xlim'): 
    332                 new_panel.subplot.set_xlim(event.xlim) 
    333             if hasattr(event, 'ylim'): 
    334                 new_panel.subplot.set_ylim(event.ylim) 
    335314        return 
Note: See TracChangeset for help on using the changeset viewer.