Changeset 3f43b18 in sasview
- Timestamp:
- Mar 23, 2009 2:57:56 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:
- d3966c2
- Parents:
- 54a26d65
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
r54a26d65 r3f43b18 121 121 """ 122 122 self.sim_page= self.fit_panel.add_sim_page() 123 self.sim_page. add_model(self.page_finder)123 self.sim_page.draw_page(self.page_finder) 124 124 125 125 … … 755 755 if model ==None: 756 756 return 757 name = model.name757 758 758 sim_page=self.sim_page 759 759 current_pg = self.fit_panel.get_current_page() … … 762 762 if current_pg != sim_page: 763 763 764 if len(self.page_finder[current_pg].get_model())==0:764 if self.page_finder[current_pg].get_model()== None : 765 765 766 766 model.name="M"+str(self.index_model) 767 767 self.index_model += 1 768 768 else: 769 model.name= self.page_finder[current_pg].get_model()[0].name770 769 771 try:772 metadata=self.page_finder[current_pg].get_plotted_data()773 M_name = model.name+"= "+name+"("+metadata.name+")"774 except:775 M_name = model.name+"= "+name770 model.name= self.page_finder[current_pg].get_model().name 771 772 773 metadata = self.page_finder[current_pg].get_plotted_data() 774 776 775 # save the name containing the data name with the appropriate model 777 self.page_finder[current_pg].set_model(model ,M_name)778 776 self.page_finder[current_pg].set_model(model) 777 print "wwent hete",model.name 779 778 # save model name 780 779 self.draw_model( model=model, data= metadata) 781 780 782 781 if self.sim_page!=None: 783 self.sim_page. add_model(self.page_finder)782 self.sim_page.draw_page(self.page_finder) 784 783 785 784 … … 940 939 err_image[err_image==0]= 1 941 940 theory= Data2D(image= image , err_image= err_image) 941 theory.name= model.name 942 942 943 943 if data ==None: 944 944 self._fill_default_model2D(theory= theory, qmax=qmax,qstep=qstep, qmin= qmin) 945 theory.name= model.name945 946 946 else: 947 theory.name= data.name948 947 theory.id= "Model" 949 948 theory.group_id= "Model"+data.name
Note: See TracChangeset
for help on using the changeset viewer.