source: sasview/realSpaceModeling/analmodelpy/tests/testanal_model.py @ 58c6ba6

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.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 58c6ba6 was f2d6445, checked in by Mathieu Doucet <doucetm@…>, 17 years ago

moving realSpaceModeling to trunk

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[f2d6445]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 SANSsimulation import analmodelpy as analmodelpymodule
17    from SANSsimulation import iqPy
18    from SANSsimulation 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.