Changeset ed2ea6a in sasview for sansview/perspectives/fitting/modelpage.py
- Timestamp:
- Feb 27, 2009 6:53:16 PM (15 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:
- b491d6e
- Parents:
- 6d920cd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/modelpage.py
r7d680c7 red2ea6a 738 738 angle= self.phi_cb.GetLabelText() 739 739 n=0 740 print "hello1",self.model.runXY([0.01,0.01])740 #print "hello1",self.model.runXY([0.01,0.01]) 741 741 self.disp_list=self.model.getDispParamList() 742 742 name= "phi" … … 748 748 #self.model.dispersion[param]['npts'] = len(values) 749 749 n+=1 750 print "model dispers list",self.model.getDispParamList()750 #print "model dispers list",self.model.getDispParamList() 751 751 if n ==0: 752 752 wx.PostEvent(self.parent.parent, StatusEvent(status=\ 753 753 " Model contains no %s distribution"%name)) 754 754 else: 755 print "hello2",self.model.runXY([0.01,0.01])755 #print "hello2",self.model.runXY([0.01,0.01]) 756 756 #self._draw_model() 757 757 qmin=self.qmin_x … … 775 775 value = self.model.runXY([x[i_x], y[i_y]]) 776 776 output[i_x] [i_y]=value 777 print"modelpage", output777 #print"modelpage", output 778 778 self.manager.complete( output=output, elapsed=None, model=self.model, qmin=qmin, qmax=qmax,qstep=qstep) 779 779 #self._draw_model() … … 782 782 783 783 def set_panel_dispers(self, disp_list, type="GaussianModel" ): 784 """ 785 """ 784 786 785 787 self.fittable_param=[] … … 958 960 959 961 def set_model_parameter(self): 962 """ 963 """ 960 964 if len(self.parameters) !=0 and self.model !=None: 961 965 # Flag to register when a parameter has changed. … … 975 979 976 980 except: 977 raise981 #raise 978 982 wx.PostEvent(self.parent.parent, StatusEvent(status=\ 979 983 "Model Drawing Error:wrong value entered : %s"% sys.exc_value)) 984 return 985 980 986 981 987 for item in self.fixed_param: … … 1009 1015 self.model.setParam(name,value) 1010 1016 is_modified = True 1011 """ 1012 #if self.checkFitValues(item[4], item[5]): 1013 # if param_min.lstrip().rstrip()== "-inf": 1014 param_min=None 1015 else: 1016 param_min=float(param_min) 1017 if param_max.lstrip().rstrip() =="+inf": 1018 param_max=None 1019 else: 1020 param_max=float(param_max) 1021 if param_min != self.model.details[name][1]: 1022 self.model.details[name][1]= param_min 1023 is_modified = True 1024 if param_max != self.model.details[name][2]: 1025 self.model.details[name][2]= param_max 1026 is_modified = True 1027 """ 1017 1028 1018 except: 1029 #print item[4].GetValue(),item[5].GetValue() 1030 raise 1031 #wx.PostEvent(self.parent.parent, StatusEvent(status=\ 1032 # "Model Drawing Error:wrong value entered : %s"% sys.exc_value)) 1033 1019 #raise 1020 wx.PostEvent(self.parent.parent, StatusEvent(status=\ 1021 "Model Drawing Error:wrong value entered : %s"% sys.exc_value)) 1022 return 1023 1024 1034 1025 # Here we should check whether the boundaries have been modified. 1035 1026 # If qmin and qmax have been modified, update qmin and qmax and … … 1067 1058 1068 1059 def select_param(self,event): 1060 """ 1061 1062 """ 1069 1063 pass 1070 1064 def select_all_param(self,event): 1065 """ 1066 1067 """ 1071 1068 pass 1072 1069 def select_all_param_helper(self):
Note: See TracChangeset
for help on using the changeset viewer.