Changes in / [048381b3:8416a02] in sasview


Ignore:
Files:
22 deleted
3 edited

Legend:

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

    r0390040 r8f46df7  
    66.. toctree:: 
    77   :maxdepth: 1 
    8  
     8    
    99   Model Fitting <sasgui/perspectives/fitting/fitting> 
    10  
     10    
    1111   P(r) Inversion <sasgui/perspectives/pr/pr_help> 
    12  
     12    
    1313   Invariant Calculation <sasgui/perspectives/invariant/invariant_help> 
    14  
    15    Correlation Function <sasgui/perspectives/corfunc/corfunc_help> 
  • sasview/sasview.py

    rc23f303 r1be5202  
    8181#Always use private .matplotlib setup to avoid conflicts with other 
    8282#uses of matplotlib 
    83 #Have to check if .sasview exists first 
     83#Have to check if .sasview exists first  
    8484sasdir = os.path.join(os.path.expanduser("~"),'.sasview') 
    8585if not os.path.exists(sasdir): 
     
    119119        # Fitting perspective 
    120120        try: 
    121             import sas.sasgui.perspectives.fitting as module 
     121            import sas.sasgui.perspectives.fitting as module     
    122122            fitting_plug = module.Plugin() 
    123123            self.gui.add_perspective(fitting_plug) 
     
    145145            logging.error(traceback.format_exc()) 
    146146 
    147         # Corfunc perspective 
    148         try: 
    149             import sas.sasgui.perspectives.corfunc as module 
    150             corfunc_plug = module.Plugin() 
    151             self.gui.add_perspective(corfunc_plug) 
    152         except: 
    153             logging.error("Unable to load corfunc module") 
    154  
    155         #Calculator perspective 
     147        #Calculator perspective    
    156148        try: 
    157149            import sas.sasgui.perspectives.calculator as module 
     
    199191if __name__ == "__main__": 
    200192    run() 
     193 
  • src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py

    r5a54aa4 rd85c194  
    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 = [] 
     
    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): 
Note: See TracChangeset for help on using the changeset viewer.