Ignore:
Timestamp:
Apr 11, 2017 9:41:48 AM (7 years ago)
Author:
butler
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
fc6651c
Parents:
426df2e (diff), 97c60f8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/master' into FixingTicket741

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/fitting.py

    r7432acb r426df2e  
    359359                                   'Add a new model function') 
    360360        wx.EVT_MENU(owner, wx_id, self.make_new_model) 
    361          
     361 
    362362        wx_id = wx.NewId() 
    363363        self.edit_model_menu.Append(wx_id, 'Sum|Multi(p1, p2)', 
     
    381381          '(Re)Load all models present in user plugin_models folder') 
    382382        wx.EVT_MENU(owner, wx_id, self.load_plugin_models) 
    383                  
     383    
    384384    def set_edit_menu_helper(self, owner=None, menu=None): 
    385385        """ 
     
    17471747                                          data_id="Data  " + data.name + " unsmeared", 
    17481748                                          dy=unsmeared_error) 
    1749             # Comment this out until we can get P*S models with correctly populated parameters 
    1750             #if sq_model is not None and pq_model is not None: 
    1751             #    self.create_theory_1D(x, sq_model, page_id, model, data, state, 
    1752             #                          data_description=model.name + " S(q)", 
    1753             #                          data_id=str(page_id) + " " + data.name + " S(q)") 
    1754             #    self.create_theory_1D(x, pq_model, page_id, model, data, state, 
    1755             #                          data_description=model.name + " P(q)", 
    1756             #                          data_id=str(page_id) + " " + data.name + " P(q)") 
     1749            if sq_model is not None and pq_model is not None: 
     1750                self.create_theory_1D(x, sq_model, page_id, model, data, state, 
     1751                                      data_description=model.name + " S(q)", 
     1752                                      data_id=str(page_id) + " " + data.name + " S(q)") 
     1753                self.create_theory_1D(x, pq_model, page_id, model, data, state, 
     1754                                      data_description=model.name + " P(q)", 
     1755                                      data_id=str(page_id) + " " + data.name + " P(q)") 
    17571756 
    17581757            current_pg = self.fit_panel.get_page_by_id(page_id) 
     
    19101909                ## and may be the cause of other noted instabilities 
    19111910                ## 
    1912                 ##    -PDB August 12, 2014  
     1911                ##    -PDB August 12, 2014 
    19131912                while self.calc_2D.isrunning(): 
    19141913                    time.sleep(0.1) 
     
    19521951            if (self.calc_1D is not None) and self.calc_1D.isrunning(): 
    19531952                self.calc_1D.stop() 
    1954                 ## stop just raises the flag -- the thread is supposed to  
     1953                ## stop just raises the flag -- the thread is supposed to 
    19551954                ## then kill itself but cannot.  Paul Kienzle came up with 
    19561955                ## this fix to prevent threads from stepping on each other 
     
    19641963                ## a request to stop the computation. 
    19651964                ## It seems thus that the whole thread approach used here 
    1966                 ## May need rethinking   
     1965                ## May need rethinking 
    19671966                ## 
    19681967                ##    -PDB August 12, 2014 
     
    21292128            residuals.dxw = None 
    21302129            residuals.ytransform = 'y' 
    2131             # For latter scale changes  
     2130            # For latter scale changes 
    21322131            residuals.xaxis('\\rm{Q} ', 'A^{-1}') 
    21332132            residuals.yaxis('\\rm{Residuals} ', 'normalized') 
Note: See TracChangeset for help on using the changeset viewer.