예제 #1
0
def addOptions(parser):
    parser.add_argument(
        'action',
        nargs='?',
        help=
        'Interact directly with the gdb server. Options: start, stop, restart or status'
    )
예제 #2
0
파일: init.py 프로젝트: damons/kubos-sdk
def addOptions(parser):
    parser.add_argument('proj_name', nargs=1, help='specify the project name')
예제 #3
0
import math
from skimage import io, transform
import glob
import os
import argparse
from multiprocessing import Pool
import subprocess
import MLSIM_datagen.SIMulator_functions
import run
import shutil

# ------------ Options --------------
from options import parser

parser.add_argument(
    '--sourceimages_path',
    type=str,
    default='/local/scratch/cnc39/phd/datasets/DIV2K/DIV2K_train_HR')
parser.add_argument('--nrep',
                    type=int,
                    default=1,
                    help='instances of same source image')
parser.add_argument('--datagen_workers', type=int, default=8, help='')
parser.add_argument('--ext',
                    nargs='+',
                    default=['png'],
                    choices=['png', 'jpg', 'tif'])

# SIM options to control from command line
parser.add_argument('--Nshifts', type=int, default=3)
parser.add_argument('--Nangles', type=int, default=3)
parser.add_argument('--k2', type=float, default=126.0)
예제 #4
0
def addOptions(parser):
    parser.add_argument('action', nargs='?', help='Interact directly with the gdb server. Options: start, stop, restart or status')
예제 #5
0
def addOptions(parser):
    parser.add_argument('module_name', nargs=1, help='remove a previously linked module from the local build')
예제 #6
0
def addOptions(parser):
    parser.add_argument('module_or_path', nargs='?', help='symlink a module to be used in another module')
예제 #7
0
파일: target.py 프로젝트: damons/kubos-sdk
def addOptions(parser):
    parser.add_argument('target', nargs='?', help='set a new target board or display the current target')
예제 #8
0
파일: link.py 프로젝트: damons/kubos-sdk
def addOptions(parser):
    parser.add_argument('module_or_path', nargs='?', help='symlink a module to be used in another module')
예제 #9
0
def addOptions(parser):
    parser.add_argument('proj_name', nargs=1, help='specify the project name')
예제 #10
0
def addOptions(parser):
    parser.add_argument(
        'target',
        nargs='?',
        help='set a new target board or display the current target')
예제 #11
0
def addOptions(parser):
    parser.add_argument('module_name', nargs=1, help='remove a previously linked module from the local build')