source: sasview/src/sas/sascalc/simulation/analmodelpy/tests/testanal_model.py @ 0765c00

Last change on this file since 0765c00 was d85c194, checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago

Remaining modules refactored

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#!/usr/bin/env python
2#
3#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4#
5#                               Michael A.G. Aivazis
6#                        California Institute of Technology
7#                        (C) 1998-2005  All Rights Reserved
8#
9#  <LicenseText>
10#
11#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12#
13
14if __name__ == "__main__":
15
16    from SASsimulation import analmodelpy as analmodelpymodule
17    from SASsimulation import iqPy
18    from SASsimulation import geoshapespy
19
20    print "copyright information:"
21    print "   ", analmodelpymodule.copyright()
22
23    print
24    print "module information:"
25    print "    file:", analmodelpymodule.__file__
26    print "    doc:", analmodelpymodule.__doc__
27    print "    contents:", dir(analmodelpymodule)
28
29    a = geoshapespy.new_sphere(1.0)
30    iq = iqPy.new_iq(10,0.001, 0.3)
31    anal = analmodelpymodule.new_analmodel(a)
32    analmodelpymodule.CalculateIQ(anal,iq)
33    iqPy.OutputIQ(iq,"out.iq")
34
35
36
37
38# version
39__id__ = "$Id$"
40
41#  End of file
Note: See TracBrowser for help on using the repository browser.