Changeset d1101bb in sasview for realSpaceModeling


Ignore:
Timestamp:
Sep 27, 2007 9:12:53 AM (17 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
2bb0b26
Parents:
1141c5d
Message:

2D sim test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • realSpaceModeling/pointsmodelpy/tests/testcomplexmodel.py

    rf2d6445 rd1101bb  
    9292  print "pass" 
    9393 
     94# Test 2D complex model 
     95def test_complex4(): 
     96 
     97 
     98    a = geoshapespy.new_sphere(10) 
     99    lm = pointsmodelpy.new_loresmodel(0.1) 
     100    pointsmodelpy.lores_add(lm,a,1.0) 
     101 
     102    vpcomplex = pointsmodelpy.new_point3dvec(); 
     103    complex = pointsmodelpy.new_complexmodel() 
     104    pointsmodelpy.complexmodel_add(complex,lm,"LORES"); 
     105     
     106    pointsmodelpy.get_complexpoints(complex,vpcomplex); 
     107  
     108    print pointsmodelpy.get_complex_iq_2D(complex,vpcomplex,0.1,0.1); 
     109    print pointsmodelpy.get_complex_iq_2D(complex,vpcomplex,0.01,0.1); 
     110 
     111 
    94112if __name__ == "__main__": 
    95     print "test 1, adding one nonempty loresmodel and one nonempty pdbmodel to complex model" 
    96     test_complex() 
    97     print "test 2, adding a nonempty pdbmodel, and adding an empty loresmodel" 
    98     test_complex2() 
    99     print "test 3, adding an empty pdbmodel, and adding a nonempty loresmodel" 
    100     test_complex3() 
    101      
     113    #print "test 1, adding one nonempty loresmodel and one nonempty pdbmodel to complex model" 
     114    #test_complex() 
     115    #print "test 2, adding a nonempty pdbmodel, and adding an empty loresmodel" 
     116    #test_complex2() 
     117    #print "test 3, adding an empty pdbmodel, and adding a nonempty loresmodel" 
     118    #test_complex3() 
     119    test_complex4() 
Note: See TracChangeset for help on using the changeset viewer.