Changeset d2c4c06 in sasview for fittingview/src/sans/perspectives


Ignore:
Timestamp:
Jan 22, 2012 4:07:02 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:
e499ca0
Parents:
cdf515f
Message:

fixed compute update w/ no data set

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

Legend:

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

    r33477fd rd2c4c06  
    14371437            except: 
    14381438                pass 
    1439             #if is_modified: 
    14401439 
    14411440            # Here we should check whether the boundaries have been modified. 
     
    14581457            else: 
    14591458                self.fitrange = False     
     1459                 
     1460            if not self.data.is_data: 
     1461                is_modified = True 
     1462 
    14601463            ## if any value is modify draw model with new value 
    14611464            if not self.fitrange: 
  • fittingview/src/sans/perspectives/fitting/fitpage.py

    r33477fd rd2c4c06  
    10661066 
    10671067            return 
    1068         flag = self._update_paramv_on_fit()          
     1068        if not self.data.is_data: 
     1069            self.npts_x = self.Npts_total.GetValue() 
     1070            self.Npts_fit.SetValue(self.npts_x) 
     1071            self.create_default_data()  
     1072        flag = self._update_paramv_on_fit()   
     1073     
    10691074        wx.CallAfter(self._onparamEnter_helper) 
    10701075        if not flag: 
     
    14451450        # For theory mode 
    14461451        if not self.data.is_data: 
     1452            self.npts_x = self.Npts_total.GetValue() 
     1453            self.Npts_fit.SetValue(self.npts_x) 
    14471454            self.create_default_data() 
    14481455        # Flag to register when a parameter has changed. 
Note: See TracChangeset for help on using the changeset viewer.