예제 #1
0
파일: testiq.py 프로젝트: mcbeaker/sasview
#!/usr/bin/env python
#
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
#                               Michael A.G. Aivazis
#                        California Institute of Technology
#                        (C) 1998-2005  All Rights Reserved
#
#  <LicenseText>
#
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#

if __name__ == "__main__":

    from SASsimulation import iqPy
    iqPy.new_iq(10, 0.01, 0.4)

    print "pass."

# version
__id__ = "$Id$"

#  End of file
예제 #2
0
#!/usr/bin/env python
#
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
#                               Michael A.G. Aivazis
#                        California Institute of Technology
#                        (C) 1998-2005  All Rights Reserved
#
#  <LicenseText>
#
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#

if __name__ == "__main__":

    from SASsimulation import iqPy

    iqPy.new_iq(10, 0.01, 0.4)

    print "pass."

# version
__id__ = "$Id$"

#  End of file
예제 #3
0
# 

if __name__ == "__main__":

    from SASsimulation import analmodelpy as analmodelpymodule
    from SASsimulation import iqPy
    from SASsimulation import geoshapespy

    print "copyright information:"
    print "   ", analmodelpymodule.copyright()

    print
    print "module information:"
    print "    file:", analmodelpymodule.__file__
    print "    doc:", analmodelpymodule.__doc__
    print "    contents:", dir(analmodelpymodule)

    a = geoshapespy.new_sphere(1.0)
    iq = iqPy.new_iq(10,0.001, 0.3)
    anal = analmodelpymodule.new_analmodel(a)
    analmodelpymodule.CalculateIQ(anal,iq)
    iqPy.OutputIQ(iq,"out.iq")




# version
__id__ = "$Id$"

#  End of file 
예제 #4
0
#
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
from __future__ import print_function

if __name__ == "__main__":

    from SASsimulation import analmodelpy as analmodelpymodule
    from SASsimulation import iqPy
    from SASsimulation import geoshapespy

    print("copyright information:")
    print("   ", analmodelpymodule.copyright())

    print()
    print("module information:")
    print("    file:", analmodelpymodule.__file__)
    print("    doc:", analmodelpymodule.__doc__)
    print("    contents:", dir(analmodelpymodule))

    a = geoshapespy.new_sphere(1.0)
    iq = iqPy.new_iq(10, 0.001, 0.3)
    anal = analmodelpymodule.new_analmodel(a)
    analmodelpymodule.CalculateIQ(anal, iq)
    iqPy.OutputIQ(iq, "out.iq")

# version
__id__ = "$Id$"

#  End of file