Changeset 2e10b70 in sasview
- Timestamp:
- Dec 22, 2008 11:17:54 AM (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:
- 1c5b068
- Parents:
- 988130c6
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
r08b9c6c8 r2e10b70 582 582 #print "mon menu",model.name 583 583 description=model.description 584 #self.fit_panel.add_model_page(model,description,name) 584 #self.fit_panel.add_model_page(model,description,name) 585 585 586 self.draw_model(model,self.enable_model2D) 586 587 … … 603 604 qstep =0.001 604 605 605 606 print "x in data1D",qmin,qmax 606 607 x = numpy.arange(qmin, qmax, qstep) 607 608 xlen= len(x) -
sansview/perspectives/fitting/modelpage.py
rdc317d1 r2e10b70 80 80 self.sizer4.Add(wx.StaticText(self, -1, 'x range'),(iy, ix),(1,1),\ 81 81 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 82 try: 83 if hasattr(model,'x'): 84 qmin= numpy.min(model.x) 85 86 except: 87 qmin= numpy.min(model.xmin) 82 83 qmin= 0.001 84 qmax= 1.0 88 85 ix += 1 89 86 self.xmin = wx.TextCtrl(self, -1,size=(_BOX_WIDTH,20)) 90 #self.xmin.SetValue(format_number(numpy.min(model.x)))87 self.xmin.SetValue(format_number(qmin)) 91 88 self.xmin.SetToolTipString("Minimun value of x in linear scale.") 92 89 self.xmin.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter) … … 97 94 ix += 2 98 95 self.xmax = wx.TextCtrl(self, -1,size=(_BOX_WIDTH,20)) 99 #self.xmax.SetValue(format_number(numpy.max(data.x)))96 self.xmax.SetValue(format_number(qmax)) 100 97 self.xmax.SetToolTipString("Maximum value of x in linear scale.") 101 98 self.xmax.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter) … … 380 377 wx.PostEvent(self.parent.GrandParent, StatusEvent(status=\ 381 378 "Model Drawing Error:wrong value entered : %s"% sys.exc_value)) 382 self.manager.draw_model(self.model,enable2D=self.model_view.GetValue()) 383 #self.manager.draw_model(self,model,description=None, enable1D=True,qmin=None,qmax=None, qstep=None) 379 self.manager.draw_model(self.model,qmin=float(self.xmin.GetValue()), 380 qmax=float(self.xmax.GetValue()), 381 enable2D=self.model_view.GetValue()) 382 #self.manager.draw_model(self,model,description=None, 383 # enable1D=True,qmin=None,qmax=None, qstep=None) 384 385 386 387 388
Note: See TracChangeset
for help on using the changeset viewer.