Changeset 3dcd7b5 in sasview for sansview/perspectives
- Timestamp:
- Jan 21, 2009 5:23:55 PM (16 years ago)
- 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:
- 2eb40c5
- Parents:
- 2fa4655
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage1D.py
re9b4cc4 r3dcd7b5 351 351 disp_list=self.model.getDispParamList() 352 352 fixed=self.model.fixed 353 print "fixed" 353 354 ip=0 354 355 iq=1 … … 384 385 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 385 386 self.text2_4.Hide() 386 387 print "keys", keys 387 388 for item in keys: 388 389 if not item in disp_list: … … 504 505 # Flag to register when a parameter has changed. 505 506 is_modified = False 507 for item in self.fixed_param: 508 509 try: 510 name=str(item[0]) 511 value= float(item[1].GetValue()) 512 print "model para", name,value 513 # If the value of the parameter has changed, 514 # update the model and set the is_modified flag 515 if value != self.model.getParam(name): 516 self.model.setParam(name,value) 517 is_modified = True 518 except: 519 wx.PostEvent(self.parent.GrandParent, StatusEvent(status=\ 520 "Model Drawing Error:wrong value entered : %s"% sys.exc_value)) 521 506 522 for item in self.parameters: 523 print "paramters",str(item[0].GetLabelText()) 507 524 try: 508 525 name=str(item[0].GetLabelText()) 509 526 value= float(item[1].GetValue()) 527 print "model para", name,value 510 528 # If the value of the parameter has changed, 511 529 # update the model and set the is_modified flag
Note: See TracChangeset
for help on using the changeset viewer.