magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249unittest-saveload
Last change
on this file since 0d93464 was
a1b8fee,
checked in by andyfaff, 8 years ago
|
MAINT: from future import print_function
|
-
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 | from __future__ import print_function |
---|
14 | |
---|
15 | |
---|
16 | if __name__ == "__main__": |
---|
17 | |
---|
18 | from SASsimulation import analmodelpy as analmodelpymodule |
---|
19 | from SASsimulation import iqPy |
---|
20 | from SASsimulation import geoshapespy |
---|
21 | |
---|
22 | print("copyright information:") |
---|
23 | print(" ", analmodelpymodule.copyright()) |
---|
24 | |
---|
25 | print() |
---|
26 | print("module information:") |
---|
27 | print(" file:", analmodelpymodule.__file__) |
---|
28 | print(" doc:", analmodelpymodule.__doc__) |
---|
29 | print(" contents:", dir(analmodelpymodule)) |
---|
30 | |
---|
31 | a = geoshapespy.new_sphere(1.0) |
---|
32 | iq = iqPy.new_iq(10,0.001, 0.3) |
---|
33 | anal = analmodelpymodule.new_analmodel(a) |
---|
34 | analmodelpymodule.CalculateIQ(anal,iq) |
---|
35 | iqPy.OutputIQ(iq,"out.iq") |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | # version |
---|
41 | __id__ = "$Id$" |
---|
42 | |
---|
43 | # End of file |
---|
Note: See
TracBrowser
for help on using the repository browser.