コード例 #1
0
def test_hello():
    assert type(foo.hello("string")) is str
コード例 #2
0
ファイル: testfoo.py プロジェクト: k-automation/playground
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
ファイル: py_routine.py プロジェクト: catketchup/newlens
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()
コード例 #8
0
def test_rhello():
    assert rhello() == hello()
コード例 #9
0
def test_hello():
    assert hello() == 'Hello World!'
コード例 #10
0
ファイル: app.py プロジェクト: zzmacoolboy/pyprotect
def main():
    foo.hello()