Changeset 1ac202f in sasview


Ignore:
Timestamp:
Mar 28, 2012 12:45:22 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:
07dfdb8
Parents:
cdc2ee2
Message:

remove useless parameters displaying

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

Legend:

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

    rf74673c r1ac202f  
    30053005        # go through the str params 
    30063006        for item in param:  
     3007            # copy only the params shown 
     3008            if not item[2].IsShown(): 
     3009                continue 
    30073010            disfunc = '' 
    30083011            try: 
  • fittingview/src/sans/perspectives/fitting/fitting.py

    r796c4d4 r1ac202f  
    14751475        wx.PostEvent(self.parent, StatusEvent(status=msg, error="error", 
    14761476                                                              type="stop")) 
    1477         wx.CallAfter(self.parent.on_set_batch_result,batch_outputs,  
     1477        # Remove parameters that are not shown 
     1478        cpage = self.fit_panel.get_page_by_id(uid) 
     1479        tbatch_outputs = {} 
     1480        shownkeystr = cpage.get_copy_params() 
     1481        for key in batch_outputs.keys(): 
     1482            if key in ["Chi2", "Data"] or shownkeystr.count(key)>0: 
     1483                tbatch_outputs[key] = batch_outputs[key] 
     1484                 
     1485        wx.CallAfter(self.parent.on_set_batch_result,tbatch_outputs,  
    14781486                                            batch_inputs, 
    14791487                                           self.sub_menu) 
Note: See TracChangeset for help on using the changeset viewer.