Changeset dbb3914 in sasview for fittingview


Ignore:
Timestamp:
Jun 4, 2012 2:27:15 PM (13 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:
7c720e9
Parents:
0320d36
Message:

fixing the pylint warnings

File:
1 edited

Legend:

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

    r940aca7 rdbb3914  
    627627            if self.state_index == 0 and len(self.mypanels) <= 0 \ 
    628628            and self.sfile_ext == '.svs': 
    629                 #TODO: Why was the following line left in the code 
    630                 # if add_default_pages doesn't exist? 
    631                 try: 
    632                     self.fit_panel.add_default_pages() 
    633                 except: 
    634                     print sys.exc_value 
    635629                self.temp_state = [] 
    636630                self.state_index = 0 
     
    20182012        if data_copy.__class__.__name__ == "Data2D": 
    20192013            if index == None: 
    2020                 index = numpy.ones(len(data_copy.data), ntype=bool) 
     2014                index = numpy.ones(len(data_copy.data), dtype=bool) 
    20212015            if weight != None: 
    20222016                data_copy.err_data = weight 
     
    20332027            # 1 d theory from model_thread is only in the range of index 
    20342028            if index == None:  
    2035                 index = numpy.ones(len(data_copy.y), ntype=bool) 
     2029                index = numpy.ones(len(data_copy.y), dtype=bool) 
    20362030            if weight != None: 
    20372031                data_copy.dy = weight 
Note: See TracChangeset for help on using the changeset viewer.