Changes in / [199b515e:68669da] in sasview
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r8662a58 r4109bd5 1382 1382 self.state.npts = self.npts_x 1383 1383 1384 def _onparamEnter_helper(self , is_modified=False):1384 def _onparamEnter_helper(self): 1385 1385 """ 1386 1386 check if values entered by the user are changed and valid to replot … … 1388 1388 """ 1389 1389 # Flag to register when a parameter has changed. 1390 #is_modified = False1390 is_modified = False 1391 1391 self.fitrange = True 1392 1392 is_2Ddata = False … … 1396 1396 is_2Ddata = True 1397 1397 if self.model != None: 1398 #Either we get a is_modified = True passed in because 1399 #_update_paramv_on_fit() has been called already or 1400 # we need to check here ourselves. 1401 if not is_modified: 1402 is_modified = (self._check_value_enter(self.fittable_param) 1403 or self._check_value_enter(self.fixed_param) 1404 or self._check_value_enter(self.parameters)) 1398 is_modified = (self._check_value_enter(self.fittable_param) 1399 or self._check_value_enter(self.fixed_param) 1400 or self._check_value_enter(self.parameters)) 1405 1401 1406 1402 # Here we should check whether the boundaries have been modified. … … 1440 1436 self.Refresh() 1441 1437 1442 #logging.info("is_modified flag set to %g",is_modified)1438 logging.info("is_modified flag set to %g",is_modified) 1443 1439 return is_modified 1444 1440 … … 1450 1446 flag = True 1451 1447 self.fitrange = True 1452 is_modified = False1453 1448 1454 1449 #wx.PostEvent(self._manager.parent, StatusEvent(status=" \ … … 1463 1458 [self.data]) 1464 1459 ##Check the values 1465 is_modified = (self._check_value_enter(self.fittable_param)1466 orself._check_value_enter(self.fixed_param)1467 or self._check_value_enter(self.parameters))1460 self._check_value_enter(self.fittable_param) 1461 self._check_value_enter(self.fixed_param) 1462 self._check_value_enter(self.parameters) 1468 1463 1469 1464 # If qmin and qmax have been modified, update qmin and qmax and … … 1547 1542 logging.error(traceback.format_exc()) 1548 1543 1549 return flag ,is_modified1544 return flag 1550 1545 1551 1546 def _reset_parameters_state(self, listtorestore, statelist): -
src/sas/sasgui/perspectives/fitting/fitpage.py
r8662a58 rb4818d9 996 996 self.create_default_data() 997 997 """ 998 flag ,is_modified= self._update_paramv_on_fit()999 1000 wx.CallAfter(self._onparamEnter_helper (is_modified))998 flag = self._update_paramv_on_fit() 999 1000 wx.CallAfter(self._onparamEnter_helper) 1001 1001 if not flag: 1002 1002 msg = "The parameters are invalid"
Note: See TracChangeset
for help on using the changeset viewer.