• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(56604)  |  Call(55959)  |  Derive(0)  |  Import(645)
exit([status])

Exit the interpreter by raising SystemExit(status).
If the status is omitted or None, it defaults to zero (i.e., success).
If the status is numeric, it will be used as the system exit status.
If it is another kind of object, it will be printed and the system
exit status will be one (i.e., failure).

src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/raytracer/build_tasklist.py   quickflash(Download)
def main() :
 
    from sys import argv, exit, stderr, stdout
 
    argc = len(argv)
 
    min_args = int(4)
 
    if (argc < min_args) :
        stderr.write("Usage: " + argv[0] + " width_pixels height_pixels "
                     + "task_size\n\n")
        exit(1)
 
    if (width_pixels < 1) :
        stderr.write("Error: Width pixels must be positive\n\n")
        exit(-1)
 
    height_pixels = int(argv[argptr])
    argptr += 1
 
    if (height_pixels < 1) :
        stderr.write("Error: Height pixels must be positive\n\n")
        exit(-1)
 
    if (task_size < 1) :
        stderr.write("Error: Task size must be positive\n\n")
        exit(-1)
 
 
    num_pixels = width_pixels * height_pixels

src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/raytracer/stitch_tasks.py   quickflash(Download)
def main() :
 
    from sys import argv, exit, stdout, stderr
 
    argc = len(argv)
 
    min_args = int(4)
 
    if (argc < min_args) :
        stderr.write("Usage: " + argv[0] + " input_file num_rows num_cols"
                     + " [ empty_value ]\n\n")
        exit(1)
 
    if (num_rows < 1) :
        stderr.write("Error: Number of rows must be positive\n\n")
        exit(-1)
 
    num_cols = int(argv[argptr])
    argptr += 1
 
    if (num_cols < 1) :
        stderr.write("Error: Number of columns must be positive\n\n")
        exit(-1)
 
                if ((start_pixel + num_pixels) > total_pixels) :
                    stderr.write("Error: Pixels index out of bounds\n\n")
                    exit(-2)
 
                for index in range(num_pixels) :
 

src/q/u/quickflash-HEAD/trunk/examples/raytracer/build_tasklist.py   quickflash(Download)
def main() :
 
    from sys import argv, exit, stderr, stdout
 
    argc = len(argv)
 
    min_args = int(4)
 
    if (argc < min_args) :
        stderr.write("Usage: " + argv[0] + " width_pixels height_pixels "
                     + "task_size\n\n")
        exit(1)
 
    if (width_pixels < 1) :
        stderr.write("Error: Width pixels must be positive\n\n")
        exit(-1)
 
    height_pixels = int(argv[argptr])
    argptr += 1
 
    if (height_pixels < 1) :
        stderr.write("Error: Height pixels must be positive\n\n")
        exit(-1)
 
    if (task_size < 1) :
        stderr.write("Error: Task size must be positive\n\n")
        exit(-1)
 
 
    num_pixels = width_pixels * height_pixels

src/q/u/quickflash-HEAD/rtflame/examples/raytracer/build_tasklist.py   quickflash(Download)
def main() :
 
    from sys import argv, exit, stderr, stdout
 
    argc = len(argv)
 
    min_args = int(4)
 
    if (argc < min_args) :
        stderr.write("Usage: " + argv[0] + " width_pixels height_pixels "
                     + "task_size\n\n")
        exit(1)
 
    if (width_pixels < 1) :
        stderr.write("Error: Width pixels must be positive\n\n")
        exit(-1)
 
    height_pixels = int(argv[argptr])
    argptr += 1
 
    if (height_pixels < 1) :
        stderr.write("Error: Height pixels must be positive\n\n")
        exit(-1)
 
    if (task_size < 1) :
        stderr.write("Error: Task size must be positive\n\n")
        exit(-1)
 
 
    num_pixels = width_pixels * height_pixels

src/q/u/quickflash-HEAD/netcdf/examples/raytracer/build_tasklist.py   quickflash(Download)
def main() :
 
    from sys import argv, exit, stderr, stdout
 
    argc = len(argv)
 
    min_args = int(4)
 
    if (argc < min_args) :
        stderr.write("Usage: " + argv[0] + " width_pixels height_pixels "
                     + "task_size\n\n")
        exit(1)
 
    if (width_pixels < 1) :
        stderr.write("Error: Width pixels must be positive\n\n")
        exit(-1)
 
    height_pixels = int(argv[argptr])
    argptr += 1
 
    if (height_pixels < 1) :
        stderr.write("Error: Height pixels must be positive\n\n")
        exit(-1)
 
    if (task_size < 1) :
        stderr.write("Error: Task size must be positive\n\n")
        exit(-1)
 
 
    num_pixels = width_pixels * height_pixels

src/q/u/quickflash-HEAD/examples/raytracer/build_tasklist.py   quickflash(Download)
def main() :
 
    from sys import argv, exit, stderr, stdout
 
    argc = len(argv)
 
    min_args = int(4)
 
    if (argc < min_args) :
        stderr.write("Usage: " + argv[0] + " width_pixels height_pixels "
                     + "task_size\n\n")
        exit(1)
 
    if (width_pixels < 1) :
        stderr.write("Error: Width pixels must be positive\n\n")
        exit(-1)
 
    height_pixels = int(argv[argptr])
    argptr += 1
 
    if (height_pixels < 1) :
        stderr.write("Error: Height pixels must be positive\n\n")
        exit(-1)
 
    if (task_size < 1) :
        stderr.write("Error: Task size must be positive\n\n")
        exit(-1)
 
 
    num_pixels = width_pixels * height_pixels

src/q/u/quickflash-HEAD/trunk/examples/raytracer/stitch_tasks.py   quickflash(Download)
def main() :
 
    from sys import argv, exit, stdout, stderr
 
    argc = len(argv)
 
    min_args = int(4)
 
    if (argc < min_args) :
        stderr.write("Usage: " + argv[0] + " input_file num_rows num_cols"
                     + " [ empty_value ]\n\n")
        exit(1)
 
    if (num_rows < 1) :
        stderr.write("Error: Number of rows must be positive\n\n")
        exit(-1)
 
    num_cols = int(argv[argptr])
    argptr += 1
 
    if (num_cols < 1) :
        stderr.write("Error: Number of columns must be positive\n\n")
        exit(-1)
 
                if ((start_pixel + num_pixels) > total_pixels) :
                    stderr.write("Error: Pixels index out of bounds\n\n")
                    exit(-2)
 
                for index in range(num_pixels) :
 

src/q/u/quickflash-HEAD/rtflame/examples/raytracer/stitch_tasks.py   quickflash(Download)
def main() :
 
    from sys import argv, exit, stdout, stderr
 
    argc = len(argv)
 
    min_args = int(4)
 
    if (argc < min_args) :
        stderr.write("Usage: " + argv[0] + " input_file num_rows num_cols"
                     + " [ empty_value ]\n\n")
        exit(1)
 
    if (num_rows < 1) :
        stderr.write("Error: Number of rows must be positive\n\n")
        exit(-1)
 
    num_cols = int(argv[argptr])
    argptr += 1
 
    if (num_cols < 1) :
        stderr.write("Error: Number of columns must be positive\n\n")
        exit(-1)
 
                if ((start_pixel + num_pixels) > total_pixels) :
                    stderr.write("Error: Pixels index out of bounds\n\n")
                    exit(-2)
 
                for index in range(num_pixels) :
 

src/q/u/quickflash-HEAD/netcdf/examples/raytracer/stitch_tasks.py   quickflash(Download)
def main() :
 
    from sys import argv, exit, stdout, stderr
 
    argc = len(argv)
 
    min_args = int(4)
 
    if (argc < min_args) :
        stderr.write("Usage: " + argv[0] + " input_file num_rows num_cols"
                     + " [ empty_value ]\n\n")
        exit(1)
 
    if (num_rows < 1) :
        stderr.write("Error: Number of rows must be positive\n\n")
        exit(-1)
 
    num_cols = int(argv[argptr])
    argptr += 1
 
    if (num_cols < 1) :
        stderr.write("Error: Number of columns must be positive\n\n")
        exit(-1)
 
                if ((start_pixel + num_pixels) > total_pixels) :
                    stderr.write("Error: Pixels index out of bounds\n\n")
                    exit(-2)
 
                for index in range(num_pixels) :
 

src/q/u/quickflash-HEAD/examples/raytracer/stitch_tasks.py   quickflash(Download)
def main() :
 
    from sys import argv, exit, stdout, stderr
 
    argc = len(argv)
 
    min_args = int(4)
 
    if (argc < min_args) :
        stderr.write("Usage: " + argv[0] + " input_file num_rows num_cols"
                     + " [ empty_value ]\n\n")
        exit(1)
 
    if (num_rows < 1) :
        stderr.write("Error: Number of rows must be positive\n\n")
        exit(-1)
 
    num_cols = int(argv[argptr])
    argptr += 1
 
    if (num_cols < 1) :
        stderr.write("Error: Number of columns must be positive\n\n")
        exit(-1)
 
                if ((start_pixel + num_pixels) > total_pixels) :
                    stderr.write("Error: Pixels index out of bounds\n\n")
                    exit(-2)
 
                for index in range(num_pixels) :
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next