Changes in / [50f1477:09fdc89] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r345e7e4 r345e7e4 1435 1435 self.qmax_x = tempmax 1436 1436 is_modified = True 1437 1438 1437 if is_2Ddata: 1439 # set mask1440 1438 is_modified = self._validate_Npts() 1441 1439 else: 1440 is_modified = self._validate_Npts_1D() 1442 1441 else: 1443 1442 self.fitrange = False … … 1454 1453 # Theory case: need to get npts value to draw 1455 1454 self.npts_x = float(self.Npts_total.GetValue()) 1455 self.Npts_fit.SetValue(str(self.Npts_total.GetValue())) 1456 self._save_plotting_range() 1456 1457 self.create_default_data() 1457 1458 self.state_change = True … … 1528 1529 index_data = ((self.qmin_x <= self.data.x) & 1529 1530 (self.data.x <= self.qmax_x)) 1530 val = str(len([index_data is True])) 1531 self.Npts_fit.SetValue(val) 1531 val = self.data.x[index_data is True] 1532 val = len(val) if isinstance(val, list) else 1 1533 self.Npts_fit.SetValue(str(val)) 1534 1532 1535 else: 1533 1536 # No data in the panel … … 2167 2170 flag = False 2168 2171 else: 2169 self.Npts_fit.SetValue(str(len(index_data[index_data is True]))) 2172 val = index_data[index_data is True] 2173 val = len(val) if isinstance(val, list) else 1 2174 self.Npts_fit.SetValue(str(val)) 2170 2175 self.fitrange = True 2171 2176
Note: See TracChangeset
for help on using the changeset viewer.