def cloud_function(config, execute, test, staging, deps, clean, database):
    args_dict = {
        "config": config,
        "execute": execute,
        "test": test,
        "staging": staging,
        "deps": deps,
        "clean": clean,
        "database": database
    }

    args = SimpleNamespace(**args_dict)
    main(args)
Esempio n. 2
0
    def generate():
        callback = runner.main()
        while 1 == 1:

            #TODO: delete
            #distribution = np.random.rand(7)
            #distribution /= distribution.sum()
            nums =  callback.__next__()
            # print(nums)
            yield ",".join(np.char.mod('%.2f', nums)) + '\n'
            sleep(1)
Esempio n. 3
0
# Easy way to debug is to run this file
from src import runner

runner.main()
Esempio n. 4
0
def test_main():
    assert main() is None
Esempio n. 5
0
__author__ = 'Lorenzo Rutigliano, [email protected]'

from src.runner import main

if __name__ == '__main__':
    main()
Esempio n. 6
0
from src.runner import main
import sys

main(sys.argv)