Changeset 1374fbe4 in sasview
- Timestamp:
- Feb 2, 2009 8:59:43 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:
- 00d083c
- Parents:
- c80c06f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
rc80c06f r1374fbe4 320 320 if model.name == model_name: 321 321 small_out.append(p.value ) 322 small_cov.append(p.stderr) 322 if p.stderr ==None: 323 small_cov.append(0) 324 else: 325 small_cov.append(p.stderr) 323 326 model.setParam(param_name,p.value) 324 327 # Display result on each page … … 635 638 636 639 theory.data = numpy.zeros((len(data.y_bins),len(data.x_bins))) 637 for i in range(len(data. y_bins)):638 if data. y_bins[i]>= ymin and data.y_bins[i]<= ymax:639 for j in range(len(data. x_bins)):640 if data. x_bins[i]>= qmin and data.x_bins[i]<= qmax:641 theory.data[j][i]=model.runXY([data.x_bins[ j],data.y_bins[i]])642 640 for i in range(len(data.x_bins)): 641 if data.x_bins[i]>= qmin and data.x_bins[i]<= qmax: 642 for j in range(len(data.y_bins)): 643 if data.y_bins[j]>= ymin and data.y_bins[j]<= ymax: 644 theory.data[j][i]=model.runXY([data.x_bins[i],data.y_bins[j]]) 645 643 646 #print "fitting : plot_helper:", theory.image 644 647 #print data.image … … 738 741 739 742 def complete(self, output, elapsed, model, qmin, qmax,qstep=DEFAULT_NPTS): 740 743 741 744 wx.PostEvent(self.parent, StatusEvent(status="Calc \ 742 745 complete in %g sec" % elapsed))
Note: See TracChangeset
for help on using the changeset viewer.