aboutsummaryrefslogtreecommitdiffstats
path: root/parse/sched.py
diff options
context:
space:
mode:
Diffstat (limited to 'parse/sched.py')
-rw-r--r--parse/sched.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/parse/sched.py b/parse/sched.py
index 300c569..a65f001 100644
--- a/parse/sched.py
+++ b/parse/sched.py
@@ -50,7 +50,7 @@ class LeveledArray(object):
50 name = "%s%s" % ("%s-" % level if level else "", self.name) 50 name = "%s%s" % ("%s-" % level if level else "", self.name)
51 result[name] = Measurement(name).from_array(arr) 51 result[name] = Measurement(name).from_array(arr)
52 52
53def get_st_output(data_dir, out_dir): 53def get_st_output(data_dir, out_dir, force=False):
54 """ 54 """
55 Create and return files containing unpacked sched data 55 Create and return files containing unpacked sched data
56 """ 56 """
@@ -60,7 +60,11 @@ def get_st_output(data_dir, out_dir):
60 output_file = "%s/out-st" % out_dir 60 output_file = "%s/out-st" % out_dir
61 61
62 if os.path.isfile(output_file): 62 if os.path.isfile(output_file):
63 return output_file 63 if force:
64 os.remove(output_file)
65 else:
66 print("st-output already exists for %s" % data_dir)
67 return output_file
64 68
65 if len(bins) != 0: 69 if len(bins) != 0:
66 cmd_arr = [conf.BINS['st_show']] 70 cmd_arr = [conf.BINS['st_show']]