Changeset fe9cb70e in sasview


Ignore:
Timestamp:
Jun 4, 2012 3:27:30 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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:
0371eae
Parents:
ed09638
Message:

fixing pylint warnings

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/simfitpage.py

    r7c720e9 rfe9cb70e  
    658658            ctl2 = item[3] 
    659659            if ctl2.GetValue().lstrip().rstrip() == "": 
    660                 model = param_cbox.GetClientData(param_cbox.GetCurrentSelection()) 
    661                 msg = " Enter a constraint for %s.%s! "%(model.name,  
     660                model = param_cbox.GetClientData(\ 
     661                                            param_cbox.GetCurrentSelection()) 
     662                if model != None: 
     663                    msg = " Enter a constraint for %s.%s! "%(model.name,  
    662664                                                        param_cbox.GetString(0)) 
     665                else: 
     666                     msg = " Enter a constraint" 
    663667                wx.PostEvent(self.parent.parent, StatusEvent(status=msg)) 
    664668                return 
     
    707711        if self.batch_on: 
    708712            if self.sizer2.IsShown(): 
    709                 self.sizer2.Hide() 
     713                self.sizer2.Show(False) 
    710714            return 
    711715        box_description= wx.StaticBox(self, -1, "Fit Constraints") 
  • sansguiframe/src/sans/guiframe/data_state.py

    r8c347a6 rfe9cb70e  
    3535            _str += "Data name : %s \n" % str(self.data.name) 
    3636            _str += "Data ID : %s \n" % str(self.data.id) 
    37         else: 
    38             _str += "Theory Data: %s \n" % str(self.theory_data) 
    39         if self.theory_data is not None: 
    40             _str += "Data name : %s \n" % str(self.theory_data.name) 
    41             _str += "Theory Data ID : %s \n" % str(self.theory_data.id) 
    42         else: 
    43             _str += "Theory Data: %s \n" % str(self.theory_data) 
    44              
    4537        _str += "Theories available: %s \n" % len(self.theory_list) 
    4638        if self.theory_list: 
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Arc.py

    rbc2db41 rfe9cb70e  
    5050        self.clear_markers() 
    5151        try: 
    52             self.marker.remove() 
     52            for item in self.markers: 
     53                item.remove() 
    5354            self.arc.remove() 
    5455        except: 
     
    161162        """ 
    162163        x = params["radius"]  
    163         self.set_cursor(x, self._mouse_y) 
     164        phi_max = self.theta2 
     165        nbins = self.npts 
     166        self.set_cursor(x, self._mouse_y, phi_max, nbins) 
    164167         
    165168     
Note: See TracChangeset for help on using the changeset viewer.