Changeset 6d8bad4 in sasview


Ignore:
Timestamp:
Apr 13, 2012 7:30:17 AM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
dc0cfa4
Parents:
61184df
Message:

Fixing code style problems and bugs

Location:
fittingview/src/sans/perspectives/fitting
Files:
2 edited

Legend:

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

    r916f5c0 r6d8bad4  
    179179            return selected_page.get_data() 
    180180     
    181     def set_model_state(state): 
     181    def set_model_state(self, state): 
    182182        """ 
    183183        receive a state to reset the model in the current page 
  • fittingview/src/sans/perspectives/fitting/fitting.py

    r8b1d759 r6d8bad4  
    1  
     1""" 
     2    Fitting perspective 
     3""" 
    24 
    35################################################################################ 
     
    1820import logging 
    1921import numpy 
    20 import string 
    2122import time 
    2223from copy import deepcopy 
    2324import models 
    24 import fitpage 
    2525 
    2626from sans.dataloader.loader import Loader 
     
    617617            if self.state_index==0 and len(self.mypanels) <= 0 \ 
    618618            and self.sfile_ext =='.svs': 
    619                 self.fit_panel.add_default_pages() 
     619                #TODO: Why was the following line left in the code 
     620                # if add_default_pages doesn't exist? 
     621                try: 
     622                    self.fit_panel.add_default_pages() 
     623                except: 
     624                    print sys.exc_value 
    620625                self.temp_state = [] 
    621626                self.state_index = 0 
     
    762767             
    763768        """ 
    764         if string.find(item, ".") != -1: 
     769        if item.find(".") >= 0: 
    765770            param_names = re.split("\.", item) 
    766771            model_name = param_names[0]            
     
    11131118            plot_id = None 
    11141119            if model is not None: 
    1115                 plot_id = data.id + name 
     1120                plot_id = data.id + model.name 
    11161121            if theory: 
    11171122                plot_id = data.id  
Note: See TracChangeset for help on using the changeset viewer.