ignore None in timings (from when the OMP_NUM_THREADS is not set)
This commit is contained in:
parent
12e1c98f6f
commit
62c029ee4d
|
@ -7,8 +7,9 @@ threads, timings = [], []
|
|||
for file in os.listdir('timings'):
|
||||
with open(f'timings/{file}', 'r') as f:
|
||||
n, t = f.read().strip().split(',')
|
||||
threads.append(int(n))
|
||||
timings.append(float(t))
|
||||
if n != 'None':
|
||||
threads.append(int(n))
|
||||
timings.append(float(t))
|
||||
threads = np.array(threads)
|
||||
timings = np.array(timings)
|
||||
|
||||
|
|
Loading…
Reference in a new issue