How to use the ipython.launch.array.parser function in ipython

To help you get started, we’ve selected a few ipython examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pylada / pylada-light / ipython / launch / __init__.py View on Github external
help='Optional path to a job-folder. If not present, the '
                        'currently loaded job-dictionary will be launched.')
    opalls.add_argument('--force', action="store_true", dest="force",
                        help="If present, launches all untagged jobs, even those "
                        "which completed successfully.")
    # subparsers
    subparsers                                                                   \
        = parser.add_subparsers(help='Launches one job per untagged calculations')

    # launch scattered.
    scattered_parser(self, subparsers, opalls)
    interactive_parser(self, subparsers, opalls)
    asone_parser(self, subparsers, opalls)
    single_parser(self, subparsers, opalls)
    if qsub_array_exe is not None:
        array_parser(self, subparsers, opalls)

    # parse arguments
    try:
        args = parser.parse_args(event.split())
    except SystemExit as e:
        return None

    # creates list of dictionaries.
    jobfolders = []
    if args.pickle != '':
        for pickle in args.pickle:
            pickle = RelativePath(pickle).path
            try:
                d = load_jobs(path=pickle, timeout=20)
            except ImportError as e:
                print("ImportError: ", e)