Changeset 3f8c7bb in sasview


Ignore:
Timestamp:
Nov 11, 2016 4:02:02 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
99f3e053
Parents:
198fa76
Message:

Enforce callbacks for the Fitting group box. Fixes #753

File:
1 edited

Legend:

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

    rc8e1996 r3f8c7bb  
    14351435                    self.qmax_x = tempmax 
    14361436                    is_modified = True 
    1437  
    1438                 if is_2Ddata: 
    1439                     # set mask 
    1440                     is_modified = self._validate_Npts() 
    1441  
     1437                is_modified = self._validate_Npts() 
    14421438            else: 
    14431439                self.fitrange = False 
     
    14541450                # Theory case: need to get npts value to draw 
    14551451                self.npts_x = float(self.Npts_total.GetValue()) 
     1452                self.Npts_fit.SetValue(str(self.Npts_total.GetValue())) 
     1453                self._save_plotting_range() 
    14561454                self.create_default_data() 
    14571455                self.state_change = True 
     
    15281526                        index_data = ((self.qmin_x <= self.data.x) & 
    15291527                                      (self.data.x <= self.qmax_x)) 
    1530                         val = str(len(self.data.x[index_data is True])) 
    1531                         self.Npts_fit.SetValue(val) 
     1528                        val = self.data.x[index_data is True] 
     1529                        val = len(val) if isinstance(val, list) else 1 
     1530                        self.Npts_fit.SetValue(str(val)) 
    15321531                    else: 
    15331532                        # No data in the panel 
Note: See TracChangeset for help on using the changeset viewer.