source: sasview/src/sas/sascalc/simulation/pointsmodelpy/tests/testnegativepr.py @ a67c494

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since a67c494 was 959eb01, checked in by ajj, 8 years ago

normalising line endings

  • Property mode set to 100644
File size: 503 bytes
RevLine 
[959eb01]1if __name__ == "__main__":
2  from sasModeling.pointsmodelpy import pointsmodelpy
3  from sasModeling.iqPy import iqPy
4  from sasModeling.geoshapespy import geoshapespy
5
6  a = geoshapespy.new_sphere(10)
7  lm = pointsmodelpy.new_loresmodel(0.0005)
8  pointsmodelpy.lores_add(lm,a,1.0)
9  b = geoshapespy.new_sphere(20)
10  geoshapespy.set_center(b,20,20,20)
11  pointsmodelpy.lores_add(lm,b,-1.0)
12
13  vp = pointsmodelpy.new_point3dvec()
14  pointsmodelpy.get_lorespoints(lm,vp)
15
16  pointsmodelpy.get_lores_pr(lm,vp)
Note: See TracBrowser for help on using the repository browser.