Esempio n. 1
0
def test_hello():
    assert type(foo.hello("string")) is str
Esempio n. 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")
Esempio n. 3
0
#!/usr/bin/env python
import foo
foo.hello()
Esempio n. 4
0
File: bin.py Progetto: 0chk0/python
#__author:  "Jing Xu"
#date:  2018/1/23

import foo

foo.hello()
Esempio n. 5
0
import foo

foo.hello('change the world in python')
foo.hello('abc')
Esempio n. 6
0
 def run(self, edit):
     sublime.message_dialog(hello())
Esempio n. 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!'
Esempio n. 10
0
def main():
    foo.hello()