- Timestamp:
- Dec 12, 2008 7:44:55 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:
- d250f7d
- Parents:
- b98db8c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
rf39511b re5a9e32 590 590 x = numpy.arange(-0.05, 0.05, 0.001) 591 591 y = numpy.arange(-0.05, 0.05, 0.001) 592 print "went here ",enable2D 592 593 print "went here ",len(x) 593 594 if enable2D: 594 595 data=numpy.zeros([len(x),len(y)]) 595 596 for i in range(len(y)): 596 597 for j in range(len(x)): 597 data[i][j]=model.runXY([j,i]) 598 if i >=0 and i<=0.005 or j >=0 and j<=0.005: 599 data[i][j]=0 600 else: 601 data[i][j]=model.runXY([j,i]) 598 602 theory = Theory2D(data) 599 603 theory.group_id =str(model.name)+" 2D"
Note: See TracChangeset
for help on using the changeset viewer.