Changeset d2d0cfdf in sasview for sansview/perspectives
- Timestamp:
- Apr 21, 2009 3:34:06 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:
- a7fe3e3
- Parents:
- 7268dcc
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r502de0a rd2d0cfdf 343 343 self.state.model = self.model.clone() 344 344 new_state = self.state.clone() 345 ## save checkbutton state and txtcrtl values 346 self._copy_parameters_state(self.orientation_params, 347 self.state.orientation_params) 348 self._copy_parameters_state(self.orientation_params_disp, 349 self.state.orientation_params_disp) 350 self._copy_parameters_state(self.parameters, self.state.parameters) 351 352 self._copy_parameters_state(self.fittable_param, self.state.fittable_param) 353 self._copy_parameters_state(self.fixed_param, self.state.fixed_param) 345 354 346 355 ##Add model state on context menu … … 459 468 self.state.disp_box = self.disp_box.GetCurrentSelection() 460 469 self._save_plotting_range() 461 470 471 self.state.orientation_params =[] 472 self.state.orientation_params_disp =[] 473 self.state.parameters =[] 474 self.state.fittable_param =[] 475 self.state.fixed_param =[] 476 462 477 ## save checkbutton state and txtcrtl values 463 464 self._copy_parameters_state(self.parameters, self.state.parameters)465 self._copy_parameters_state(self.fittable_param, self.state.fittable_param)466 self._copy_parameters_state(self.fixed_param, self.state.fixed_param)467 478 self._copy_parameters_state(self.orientation_params, 468 479 self.state.orientation_params) 469 480 self._copy_parameters_state(self.orientation_params_disp, 470 481 self.state.orientation_params_disp) 471 482 self._copy_parameters_state(self.parameters, self.state.parameters) 483 484 self._copy_parameters_state(self.fittable_param, self.state.fittable_param) 485 self._copy_parameters_state(self.fixed_param, self.state.fixed_param) 472 486 473 487 ## post state to fit panel … … 506 520 self.compute_chisqr(smearer= self.smearer) 507 521 508 ## reset context menu items 509 self._reset_context_menu() 522 510 523 ## reset state of checkbox,textcrtl and parameters value 511 self._reset_parameters_state(self.parameters,state.parameters)512 self._reset_parameters_state(self.fittable_param,state.fittable_param)513 self._reset_parameters_state(self.fixed_param,state.fixed_param)514 524 self._reset_parameters_state(self.orientation_params_disp, 515 525 state.orientation_params_disp) 516 526 self._reset_parameters_state(self.orientation_params, 517 527 state.orientation_params) 518 528 self._reset_parameters_state(self.parameters,state.parameters) 529 self._reset_parameters_state(self.fittable_param,state.fittable_param) 530 self._reset_parameters_state(self.fixed_param,state.fixed_param) 531 532 ## reset context menu items 533 self._reset_context_menu() 519 534 ## draw the model with previous parameters value 520 535 self._draw_model() … … 591 606 is_modified =self._check_value_enter( self.parameters ,is_modified) 592 607 593 594 608 self.Layout() 595 609 # Here we should check whether the boundaries have been modified. … … 676 690 @param statelist: list of state object to store the current state 677 691 """ 692 678 693 if len(listtocopy)==0: 679 694 return -
sansview/perspectives/fitting/fitpage.py
rdffa973 rd2d0cfdf 197 197 radius_max = math.sqrt(x*x + y*y) 198 198 199 #For qmin and qmax, do not use format_number.(If do, qmin and max could be different from what is in the data.) 199 #For qmin and qmax, do not use format_number 200 #.(If do, qmin and max could be different from what is in the data.) 200 201 # Minimum value of data 201 #data_min = str(format_number(radius_min))202 202 data_min = str((radius_min)) 203 203 # Maximum value of data 204 #data_max = str(format_number(radius_max))205 204 data_max = str((radius_max)) 206 205 text4_3 = wx.StaticText(self, -1, "Total Q Range (1/A)", … … 436 435 self.orientation_params_disp.append([None,name3, Tctl 437 436 ,None,None, None, None,None]) 438 self._copy_parameters_state(self.orientation_params_disp, 439 self.state.orientation_params_disp) 437 440 438 441 439 wx.PostEvent(self.parent, StatusEvent(status=\
Note: See TracChangeset
for help on using the changeset viewer.