예제 #1
0
def test_hello():
    assert type(foo.hello("string")) is str
예제 #2
0
import foo
import signal
import sys

def segfault_handler(signum, frame):
    print >> sys.stderr, "Segment fault captured! Signum: %s" % signum
    print >> sys.stderr, repr(frame)
    sys.exit(-1)


if __name__ == '__main__':
    #signal.signal(signal.SIGSEGV, segfault_handler)
    foo.hello("Jerry")
예제 #3
0
파일: app.py 프로젝트: detly/Py2exe-Test
#!/usr/bin/env python
import foo
foo.hello()
예제 #4
0
파일: bin.py 프로젝트: 0chk0/python
#__author:  "Jing Xu"
#date:  2018/1/23

import foo

foo.hello()
예제 #5
0
import foo

foo.hello('change the world in python')
foo.hello('abc')
예제 #6
0
 def run(self, edit):
     sublime.message_dialog(hello())
예제 #7
0
import numpy as np
import matplotlib.pyplot as plt
import foo
import testfortran
import m
import cwignerd
foo.hello(15)
testfortran.addsub(4, 9)
print(m.m([1, 2, 3, 4, 5]))


class Call_Wignerd:
    def __init__(self, npoints):
        self.npoints = npoints
        self.zvec, self.wvec = cwignerd.init_gauss_legendre_quadrature(npoints)

    def cf_from_cl(self, s1, s2, cl):

        lmax = len(cl)-1
        return cwignerd.wignerd_cf_from_cl(s1, s2, 1, self.npoints, lmax, self.zvec, cl)

# I need to define the cl which is the factor before the wigner-d function defined in the (46)(47)(48). cl should include the lensed


Value = Call_Wignerd(100)
s1 = 2
s2 = 2
cl = np.linspace(0, 1, 20)
print(Value.cf_from_cl(s1, s2, cl))
plt.plot(Value.zvec, Value.cf_from_cl(s1, s2, cl))
plt.show()
def test_rhello():
    assert rhello() == hello()
def test_hello():
    assert hello() == 'Hello World!'
예제 #10
0
def main():
    foo.hello()