Changeset 1a74523 in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Apr 18, 2011 9:48:37 AM (14 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:
0c68c27
Parents:
ba1f0b2
Message:

Theory: fixed not updating TotalNpts? on clicking compute button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/basepage.py

    rba1f0b2 r1a74523  
    11761176            else: 
    11771177                self.fitrange = False     
    1178  
     1178             
    11791179            ## if any value is modify draw model with new value 
    11801180            if not self.fitrange: 
     
    11841184                #self.btFit.Enable(True) 
    11851185                if is_2Ddata: self.btEditMask.Enable(True) 
    1186  
    11871186            if is_modified and self.fitrange: 
     1187                if self.data == None: 
     1188                    # Theory case: need to get npts value to draw 
     1189                    self.npts_x = float(self.Npts_total.GetValue()) 
    11881190                self.state_change= True 
    11891191                self._draw_model()  
     
    12571259                    flag = True 
    12581260                if self._is_2D(): 
    1259                     # only 2D case set mask    
     1261                    # only 2D case set mask   
    12601262                    flag = self._validate_Npts() 
    12611263                    if not flag: 
     
    19111913        #default flag 
    19121914        flag = True 
     1915        # Theory 
     1916        if self.data == None and self.enable2D: 
     1917            return flag 
    19131918 
    19141919        # q value from qx and qy 
Note: See TracChangeset for help on using the changeset viewer.