Exemplo n.º 1
0
#!/usr/bin/env python

import os
from paramgrid import batchjob_args, jobqueue


parser = batchjob_args.argParser("Submit a single job to queue")

parser.add_argument('iniFile', nargs='+')

jobqueue.addArguments(parser)

args = parser.parse_args()

ini = [ini.replace('.ini', '') for ini in args.iniFile]

jobqueue.submitJob(os.path.basename(ini[0]), ini, msg=True, **args.__dict__)
Exemplo n.º 2
0
#!/usr/bin/env python

import os
from paramgrid import batchjob_args, jobqueue

parser = batchjob_args.argParser("Submit a single job to queue")

parser.add_argument('iniFile', nargs='+')

jobqueue.addArguments(parser)

args = parser.parse_args()

ini = [ini.replace('.ini', '') for ini in args.iniFile]

jobqueue.submitJob(os.path.basename(ini[0]), ini, msg=True, **args.__dict__)
Exemplo n.º 3
0
#!/usr/bin/env python

from __future__ import absolute_import
from __future__ import print_function
import hashlib
import os
from paramgrid import batchjob_args, jobqueue

Opts = batchjob_args.batchArgs(
    'Submit jobs to run chains or importance sample',
    notExist=True,
    notall=True,
    converge=True)

jobqueue.addArguments(Opts.parser, combinedJobs=True)

Opts.parser.add_argument('--subitems',
                         action='store_true',
                         help='include sub-grid items')
Opts.parser.add_argument('--not_queued', action='store_true')
Opts.parser.add_argument(
    '--filters',
    action='store_true',
    help='run any python importance filters on grid (no submission)')
Opts.parser.add_argument('--minimize',
                         action='store_true',
                         help='Run minimization jobs')
Opts.parser.add_argument(
    '--importance_minimize',
    action='store_true',
    help='Run minimization jobs for chains that are importance sampled')
Exemplo n.º 4
0
#!/usr/bin/env python

from __future__ import absolute_import
from __future__ import print_function
import hashlib
import os
from paramgrid import batchjob_args, jobqueue

Opts = batchjob_args.batchArgs('Submit jobs to run chains or importance sample', notExist=True, notall=True,
                               converge=True)

jobqueue.addArguments(Opts.parser, combinedJobs=True)

Opts.parser.add_argument('--subitems', action='store_true', help='include sub-grid items')
Opts.parser.add_argument('--not_queued', action='store_true')
Opts.parser.add_argument('--filters', action='store_true',
                         help='run any python importance filters on grid (no submission)')
Opts.parser.add_argument('--minimize', action='store_true', help='Run minimization jobs')
Opts.parser.add_argument('--importance_minimize', action='store_true',
                         help='Run minimization jobs for chains that are importance sampled')
Opts.parser.add_argument('--minimize_failed', action='store_true', help='run where minimization previously failed')
Opts.parser.add_argument('--checkpoint_run', nargs='?', default=None, const=0, type=float,
                         help='run if stopped and not finished; if optional value given then only run chains with convergence worse than the given value')
Opts.parser.add_argument('--importance_ready', action='store_true', help='where parent chain has converged and stopped')
Opts.parser.add_argument('--importance_changed', action='store_true',
                         help='run importance jobs where the parent chain has changed since last run')
Opts.parser.add_argument('--parent_converge', type=float, default=0,
                         help='minimum R-1 convergence for importance job parent')
Opts.parser.add_argument('--parent_stopped', action='store_true', help='only run if parent chain is not still running')
Opts.parser.add_argument('--chain_exists', action='store_true', help='Only run if chains already exist')