Ignore:
Timestamp:
Dec 19, 2016 1:59:52 PM (8 years ago)
Author:
GitHub <noreply@…>
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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
6b9e76f
Parents:
0633048 (diff), 09fdc89 (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.
git-author:
Jeff Krzywon <krzywon@…> (12/19/16 13:59:52)
git-committer:
GitHub <noreply@…> (12/19/16 13:59:52)
Message:

Merge branch 'master' into ticket-795

File:
1 edited

Legend:

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

    r0633048 r8aec639  
    14271427                    self.qmax_x = tempmax 
    14281428                    is_modified = True 
    1429  
    14301429                if is_2Ddata: 
    1431                     # set mask 
    14321430                    is_modified = self._validate_Npts() 
    1433  
     1431                else: 
     1432                    is_modified = self._validate_Npts_1D() 
    14341433            else: 
    14351434                self.fitrange = False 
     
    14461445                # Theory case: need to get npts value to draw 
    14471446                self.npts_x = float(self.Npts_total.GetValue()) 
     1447                self.Npts_fit.SetValue(str(self.Npts_total.GetValue())) 
     1448                self._save_plotting_range() 
    14481449                self.create_default_data() 
    14491450                self.state_change = True 
     
    15201521                        index_data = ((self.qmin_x <= self.data.x) & 
    15211522                                      (self.data.x <= self.qmax_x)) 
    1522                         val = str(len([index_data is True])) 
    1523                         self.Npts_fit.SetValue(val) 
     1523                        val = self.data.x[index_data is True] 
     1524                        val = len(val) if isinstance(val, list) else 1 
     1525                        self.Npts_fit.SetValue(str(val)) 
    15241526                    else: 
    15251527                        # No data in the panel 
     
    21622164                flag = False 
    21632165            else: 
    2164                 self.Npts_fit.SetValue(str(len(index_data[index_data is True]))) 
     2166                val = index_data[index_data is True] 
     2167                val = len(val) if isinstance(val, list) else 1 
     2168                self.Npts_fit.SetValue(str(val)) 
    21652169                self.fitrange = True 
    21662170 
Note: See TracChangeset for help on using the changeset viewer.