Exemplo n.º 1
0
def reconstruct(filename, flags, outname):
    with NamedTemporaryFile() as temp:
        call(['bin/Solver', '-i=100', '-t=polar'] + flags + [filename] +
             [temp.name],
             stdout=DEVNULL,
             stderr=DEVNULL)
        plot_data(temp, outname, '')
Exemplo n.º 2
0
def reconstruct(filename, flags, outname):
    with NamedTemporaryFile() as temp:
        call(['bin/Solver', '-i=100', '-t=polar'] + flags + [filename] + [temp.name], stdout=DEVNULL, stderr=DEVNULL)
        plot_data(temp, outname, '')
Exemplo n.º 3
0
#!/usr/bin/env python3
import time
import os

from shared import plot_data

debugfiles = [
    f for f in os.listdir('.') if f.startswith('debug-') and f.endswith('.txt')
]

job_start = time.time()

for fn in debugfiles:
    with open(fn, 'rb') as infile:
        plot_data(infile, fn + '.png')

job_end = time.time()

print('Job finished in {0:1f}s'.format(job_end - job_start))
Exemplo n.º 4
0
#!/usr/bin/env python3
import time
import os

from shared import plot_data

debugfiles = [f for f in os.listdir('.') if f.startswith('debug-') and f.endswith('.txt')]

job_start = time.time()

for fn in debugfiles:
    with open(fn, 'rb') as infile:
        plot_data(infile, fn + '.png')

job_end = time.time()

print('Job finished in {0:1f}s'.format(job_end - job_start))