Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/simulation/pointsmodelpy/tests/testcomplexmodel.py

    r959eb01 ra1b8fee  
     1from __future__ import print_function 
     2 
    13from sasModeling.pointsmodelpy import pointsmodelpy 
    24from sasModeling.iqPy import iqPy 
    35from sasModeling.geoshapespy import geoshapespy 
     6 
    47 
    58#First testing: a normal case, a lores model holds a sphere 
     
    6164  iqPy.OutputIQ(iqcomplex,"testcomplex2.iq") 
    6265 
    63   print "p(r) is saved in testcomplex2.pr" 
    64   print "I(Q) is saved in testcomplex2.iq" 
    65   print "pass" 
     66  print("p(r) is saved in testcomplex2.pr") 
     67  print("I(Q) is saved in testcomplex2.iq") 
     68  print("pass") 
    6669 
    6770#testing 3, insert one empty pdbmodel and one loresmodel 
     
    8891  iqPy.OutputIQ(iqcomplex,"testcomplex3.iq") 
    8992 
    90   print "p(r) is saved in testcomplex3.pr" 
    91   print "I(Q) is saved in testcomplex3.iq" 
    92   print "pass" 
     93  print("p(r) is saved in testcomplex3.pr") 
     94  print("I(Q) is saved in testcomplex3.iq") 
     95  print("pass") 
    9396 
    9497# Test 2D complex model 
     
    106109    pointsmodelpy.get_complexpoints(complex,vpcomplex); 
    107110  
    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); 
     111    print(pointsmodelpy.get_complex_iq_2D(complex,vpcomplex,0.1,0.1)); 
     112    print(pointsmodelpy.get_complex_iq_2D(complex,vpcomplex,0.01,0.1)); 
    110113 
    111114 
Note: See TracChangeset for help on using the changeset viewer.