Changeset 6859338 in sasview
- Timestamp:
- Mar 23, 2009 4:38:31 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:
- c7ac15e
- Parents:
- d3966c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
r3f43b18 r6859338 121 121 """ 122 122 self.sim_page= self.fit_panel.add_sim_page() 123 self.sim_page. draw_page(self.page_finder)123 self.sim_page.add_model(self.page_finder) 124 124 125 125 … … 486 486 if self.calc_fit!= None and self.calc_fit.isrunning(): 487 487 self.calc_fit.stop() 488 488 ## perform single fit 489 489 if fitproblem_count==1: 490 490 self.calc_fit=FitThread(parent =self.parent, … … 755 755 if model ==None: 756 756 return 757 757 name = model.name 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 self.page_finder[current_pg].get_model()== None:764 if len(self.page_finder[current_pg].get_model())==0: 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].name 769 770 770 model.name= self.page_finder[current_pg].get_model().name771 772 773 metadata = self.page_finder[current_pg].get_plotted_data()774 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+"= "+name 775 776 # save the name containing the data name with the appropriate model 776 self.page_finder[current_pg].set_model(model )777 print "wwent hete",model.name777 self.page_finder[current_pg].set_model(model,M_name) 778 778 779 # save model name 779 780 self.draw_model( model=model, data= metadata) 780 781 781 782 if self.sim_page!=None: 782 self.sim_page. draw_page(self.page_finder)783 self.sim_page.add_model(self.page_finder) 783 784 784 785 … … 939 940 err_image[err_image==0]= 1 940 941 theory= Data2D(image= image , err_image= err_image) 941 theory.name= model.name942 942 943 943 if data ==None: 944 944 self._fill_default_model2D(theory= theory, qmax=qmax,qstep=qstep, qmin= qmin) 945 945 theory.name= model.name 946 946 else: 947 theory.name= data.name 947 948 theory.id= "Model" 948 949 theory.group_id= "Model"+data.name
Note: See TracChangeset
for help on using the changeset viewer.