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)
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)
# Easy way to debug is to run this file from src import runner runner.main()
def test_main(): assert main() is None
__author__ = 'Lorenzo Rutigliano, [email protected]' from src.runner import main if __name__ == '__main__': main()
from src.runner import main import sys main(sys.argv)