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,6 +7,7 @@ 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(',')
if n != 'None':
threads.append(int(n)) threads.append(int(n))
timings.append(float(t)) timings.append(float(t))
threads = np.array(threads) threads = np.array(threads)