Commit b14f6b8d authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

FilesParser: check if file exists before parsing it

parent 75674d62
......@@ -3,6 +3,7 @@ from enum import Enum
import math
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
import os
import re
from plot_base import byte_formatter, byte_formatter_func, get_comm_durations, compute_stats
......@@ -427,6 +428,9 @@ class FilesParser:
def _parse_file(self, filename):
if not os.path.exists(filename):
raise Exception(f"File {filename} does not exist!")
regex = re.compile(r"^(.+)_(\d+)_.+$")
if self._forced_x_type:
regexes = {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment