Example #1
0
def loop_system(system, level=0):
    title = ccodes.f('system') + '=' + ccodes.cyan('{system}')
    indent(title, level=level, system=os.path.basename(system))
    runs = lm.find.runs(system)
    for run in runs:
        loop_run(run, level=level + 1)
Example #2
0
def loop_system(system, level=0):
    title = ccodes.f('system') + '=' + ccodes.cyan('{system}')
    indent(title, level=level, system=os.path.basename(system))
    runs = lm.find.runs(system)
    for run in runs:
        loop_run(run, level=level + 1)
Example #3
0
        except KeyError:
            cstep = 0

        try:
            tstep = chk['iterations.real']
        except KeyError:
            tstep = -1

        try:
            pstep = chk['iterations.print']
        except KeyError:
            pstep = 1000

        if not tstep % pstep == 0:
            print ccodes.red('error:') + ' ' + ccodes.blue('iterations.real % iterations.print != 0') + \
                ' ' + '(' + ccodes.cyan('%d' % tstep) + ' % ' + ccodes.cyan('%d' % pstep) + ' = ' + \
                ccodes.cyan('%d' % (tstep % pstep)) + ')'
            errors += 1
            continue

        if tstep <= cstep:
            print ccodes.red('error:') + ' ' + ccodes.blue('iterations.real <= current.step') + \
                ' ' + '(' + ccodes.cyan('%d' % tstep) + ' <= ' + ccodes.cyan('%d' % cstep) + ')'
            errors += 1
            continue

        part_id = lm.regex.part(part_relpath)
        new_part = os.path.join(os.path.dirname(part), 'part.%d' % (part_id + 1))

        if os.path.exists(new_part):
            print ccodes.red('error:') + ' ' + ccodes.blue('part already exists?') + ' ' + \
Example #4
0
        except KeyError:
            cstep = 0

        try:
            tstep = chk['iterations.real']
        except KeyError:
            tstep = -1

        try:
            pstep = chk['iterations.print']
        except KeyError:
            pstep = 1000

        if not tstep % pstep == 0:
            print ccodes.red('error:') + ' ' + ccodes.blue('iterations.real % iterations.print != 0') + \
                ' ' + '(' + ccodes.cyan('%d' % tstep) + ' % ' + ccodes.cyan('%d' % pstep) + ' = ' + \
                ccodes.cyan('%d' % (tstep % pstep)) + ')'
            errors += 1
            continue

        if tstep <= cstep:
            print ccodes.red('error:') + ' ' + ccodes.blue('iterations.real <= current.step') + \
                ' ' + '(' + ccodes.cyan('%d' % tstep) + ' <= ' + ccodes.cyan('%d' % cstep) + ')'
            errors += 1
            continue

        part_id = lm.regex.part(part_relpath)
        new_part = os.path.join(os.path.dirname(part),
                                'part.%d' % (part_id + 1))

        if os.path.exists(new_part):