Exemplo n.º 1
0
        def test_remote_map_cluster_cartesian_args(self):
            from pyhrf.tools import cartesian_combine_args

            varying_args = {'b': range(3)}
            fixed_args = {'a': 3}
            args_comb = cartesian_combine_args(varying_args, fixed_args)

            r = remote_map(foo, lkwargs=args_comb, mode='remote_cluster')

            if 0:
                print 'result:'
                print r
Exemplo n.º 2
0
        def test_remote_map_cluster_cartesian_args(self):
            from pyhrf.tools import cartesian_combine_args

            varying_args = { 'b' : range(3) }
            fixed_args = {'a' : 3 }
            args_comb = cartesian_combine_args(varying_args, fixed_args)

            r = remote_map(foo, lkwargs=args_comb, mode='remote_cluster')

            if 0:
                print 'result:'
                print r
Exemplo n.º 3
0
 def test_remote_map_cluster_many_jobs(self):
     print 'cfg:', cfg['parallel-cluster']['enable_unit_test']
     remote_map(foo, [(5,6)]*10, mode='remote_cluster')
Exemplo n.º 4
0
    def _test_remote_map_basic(self, mode):

        r = remote_map(foo, [(1,),(2,)], [{'b':5},{'b':10}], mode=mode)
        if 0:
            print 'result:'
            print r
Exemplo n.º 5
0
    def _test_remote_map_basic(self, mode):

        r = remote_map(foo, [(1,), (2,)], [{'b': 5}, {'b': 10}], mode=mode)
Exemplo n.º 6
0
 def test_remote_map_cluster_many_jobs(self):
     print 'cfg:', cfg['parallel-cluster']['enable_unit_test']
     remote_map(foo, [(5, 6)] * 10, mode='remote_cluster')
Exemplo n.º 7
0
    def _test_remote_map_basic(self, mode):

        r = remote_map(foo, [(1, ), (2, )], [{'b': 5}, {'b': 10}], mode=mode)