Changeset 52ac10b in sasview


Ignore:
Timestamp:
Nov 19, 2008 10:26:45 AM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
b5847bd8
Parents:
b710eb7
Message:

try except added to get the smearer , sans.guitools.linemodel removed

Location:
park_integration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • park_integration/AbstractFitEngine.py

    r5fcfca4 r52ac10b  
    191191        """ 
    192192        ## Smearing object 
    193         self.smearer = sans_data1d.smearer 
     193        try: 
     194            self.smearer = sans_data1d.smearer 
     195        except: 
     196            self.smearer= None 
    194197 
    195198        # Initialize from Data1D object 
  • park_integration/test/test_fit_line.py

    raf4af5a r52ac10b  
    1919        fitter = Fit('scipy') 
    2020        # Receives the type of model for the fitting 
    21         from sans.guitools.LineModel import LineModel 
     21        from sans.models.LineModel import LineModel 
    2222        model1  = LineModel() 
    2323        model1.name = "M1" 
    2424        #data = Data(sans_data=data1 ) 
    25         data1.smearer=None 
     25        #data1.smearer=None 
    2626        data = FitData1D(data1 ) 
    2727        model = Model(model1) 
     
    8383        fitter = Fit('scipy') 
    8484        # Receives the type of model for the fitting 
    85         from sans.guitools.LineModel import LineModel 
     85        from sans.models.LineModel import LineModel 
    8686        model11  = LineModel() 
    8787        model11.name= "M1" 
     
    147147        fitter = Fit('park') 
    148148        # Receives the type of model for the fitting 
    149         from sans.guitools.LineModel import LineModel 
     149        from sans.models.LineModel import LineModel 
    150150        from sans.models.Constant import Constant 
    151151        model11  = LineModel() 
     
    199199        fitter = Fit('scipy') 
    200200        # Receives the type of model for the fitting 
    201         from sans.guitools.LineModel import LineModel 
     201        from sans.models.LineModel import LineModel 
    202202        model1  = LineModel() 
    203203        model1.name= "M1" 
Note: See TracChangeset for help on using the changeset viewer.