ignore None in timings (from when the OMP_NUM_THREADS is not set)

This commit is contained in:
morales-gregorio 2024-08-30 13:35:24 +02:00
parent 12e1c98f6f
commit 62c029ee4d

View file

@ -7,8 +7,9 @@ threads, timings = [], []
for file in os.listdir('timings'): for file in os.listdir('timings'):
with open(f'timings/{file}', 'r') as f: with open(f'timings/{file}', 'r') as f:
n, t = f.read().strip().split(',') n, t = f.read().strip().split(',')
threads.append(int(n)) if n != 'None':
timings.append(float(t)) threads.append(int(n))
timings.append(float(t))
threads = np.array(threads) threads = np.array(threads)
timings = np.array(timings) timings = np.array(timings)