Changeset 4274c0e in sasview
- Timestamp:
- Oct 17, 2008 5:07:24 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:
- 24120ab
- Parents:
- a890be6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
ra890be6 r4274c0e 523 523 qmin=data.xmin 524 524 if qmax==None: 525 qm in=data.xmax525 qmax=data.xmax 526 526 if ymin==None: 527 527 ymin=data.ymin 528 528 if ymax==None: 529 qmin=data.ymax529 ymax=data.ymax 530 530 531 for i in range(len(data.y_bins)):532 if data.y_bins[i]>= ymin and data.y_bins[i]<= ymax:533 for j in range(len(data.x_bins)):534 if data.x_bins[i]>= xmin and data.x_bins[i]<= xmax:535 theory.image= model.runXY([data.x_bins[j],data.y_bins[i]])531 #for i in range(len(data.y_bins)): 532 # if data.y_bins[i]>= ymin and data.y_bins[i]<= ymax: 533 # for j in range(len(data.x_bins)): 534 # if data.x_bins[i]>= qmin and data.x_bins[i]<= qmax: 535 # theory.image= model.runXY([data.x_bins[j],data.y_bins[i]]) 536 536 537 537 538 538 #print "fitting : plot_helper:", theory.image 539 539 #print data.image 540 #theory.image=model.runXY(data.image)541 542 #print "fitting : plot_helper:",theory.image540 theory.image=model.runXY(data.image) 541 542 print "fitting : plot_helper:",theory.image 543 543 theory.zmin= data.zmin 544 544 theory.zmax= data.zmax 545 theory.xmin= data.xmin546 theory.xmax= data.xmax547 theory.ymin= data.ymin548 theory.ymax= data.ymax545 theory.xmin= qmin 546 theory.xmax= qmax 547 theory.ymin= ymin 548 theory.ymax= ymax 549 549 550 550 wx.PostEvent(self.parent, NewPlotEvent(plot=theory, title="Analytical model"))
Note: See TracChangeset
for help on using the changeset viewer.