Changeset a3c8e8f in sasview for fittingview/src


Ignore:
Timestamp:
Oct 5, 2011 5:15:40 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:
90ddcdb
Parents:
425e49ca
Message:

fixing batch plot problems

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

Legend:

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

    reb4f2fd ra3c8e8f  
    500500        # fit weight 
    501501        self.weight = None 
     502        self.result = None 
    502503         
    503504         
     
    600601                                                           self.model) 
    601602        self.smearer_computed = True 
     603        self.result = None 
    602604         
    603605    def get_fit_data(self): 
  • fittingview/src/sans/perspectives/fitting/fitting.py

    rdcc93e4 ra3c8e8f  
    10611061            for res in result: 
    10621062                model, data = res.inputs[0] 
    1063                 temp_model = model.clone() 
     1063                temp_model = model#.clone() 
    10641064                if res is None: 
    10651065                    null_value = numpy.nan 
     
    10951095                self.page_finder[pid][data.id].set_result(res) 
    10961096                fitproblem = self.page_finder[pid][data.id] 
    1097  
     1097                 
     1098                
    10981099                from sans.models.qsmearing import smear_selection 
    10991100                #smearer = fitproblem.get_smearer() 
     
    14601461            caption = current_pg.window_caption 
    14611462            self.page_finder[page_id].set_fit_tab_caption(caption=caption) 
    1462              
     1463            try: 
     1464                # replace model cal to fit calculation if possible 
     1465                new_plot.y = self.page_finder[page_id].get_result(fid=data.id).theory 
     1466            except: 
     1467                pass 
     1468 
    14631469            self.page_finder[page_id].set_theory_data(data=new_plot,  
    14641470                                                      fid=data.id) 
Note: See TracChangeset for help on using the changeset viewer.