Changeset e473e4f5 in sasview for sansview/perspectives
- Timestamp:
- Apr 23, 2009 12:37:39 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:
- 813334e
- Parents:
- 2b63df0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r2b63df0 re473e4f5 599 599 has_error = False 600 600 self.text2_3.Hide() 601 n = self.disp_box.GetCurrentSelection() 602 dispersity= self.disp_box.GetClientData(n) 603 name= dispersity.__name__ 604 if name == "GaussianDispersion": 605 if hasattr(self,"text_disp_1" ): 606 if self.text_disp_1 !=None: 607 self.text_disp_1.Hide() 601 try: 602 n = self.disp_box.GetCurrentSelection() 603 dispersity= self.disp_box.GetClientData(n) 604 name= dispersity.__name__ 605 if name == "GaussianDispersion": 606 if hasattr(self,"text_disp_1" ): 607 if self.text_disp_1 !=None: 608 self.text_disp_1.Hide() 609 except: 610 pass 608 611 #set the panel when fit result are float not list 609 612 if out.__class__==numpy.float64: … … 615 618 if cov !=None : 616 619 self.text2_3.Show(True) 617 name= dispersity.__name__ 618 if name == "GaussianDispersion": 619 if hasattr(self,"text_disp_1" ): 620 if self.text_disp_1 !=None: 621 self.text_disp_1.Show(True) 620 try: 621 name= dispersity.__name__ 622 if name == "GaussianDispersion": 623 if hasattr(self,"text_disp_1" ): 624 if self.text_disp_1 !=None: 625 self.text_disp_1.Show(True) 626 except: 627 pass 622 628 if cov[0]==None: 623 629 self.param_toFit[0][3].Hide() … … 645 651 if(cov !=None)and len(cov)<=len(self.param_toFit)and i < len(cov): 646 652 self.text2_3.Show(True) 647 name= dispersity.__name__ 648 if name == "GaussianDispersion": 649 if hasattr(self,"text_disp_1" ): 650 if self.text_disp_1!=None: 651 self.text_disp_1.Show(True) 653 try: 654 name= dispersity.__name__ 655 if name == "GaussianDispersion": 656 if hasattr(self,"text_disp_1" ): 657 if self.text_disp_1!=None: 658 self.text_disp_1.Show(True) 659 except: 660 pass 652 661 item[3].Show(True) 653 662 item[4].Clear()
Note: See TracChangeset
for help on using the changeset viewer.