Skip to content

Commit

Permalink
Added plot.py for in-terminal plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
geky committed Nov 15, 2022
1 parent 9a0e3be commit 7591d9c
Show file tree
Hide file tree
Showing 9 changed files with 839 additions and 73 deletions.
4 changes: 2 additions & 2 deletions scripts/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def main(obj_paths, **args):
else:
results = []
with openio(args['use']) as f:
reader = csv.DictReader(f)
reader = csv.DictReader(f, restval='')
for r in reader:
try:
results.append(CodeResult(**{
Expand Down Expand Up @@ -392,7 +392,7 @@ def main(obj_paths, **args):
diff_results = []
try:
with openio(args['diff']) as f:
reader = csv.DictReader(f)
reader = csv.DictReader(f, restval='')
for r in reader:
try:
diff_results.append(CodeResult(**{
Expand Down
4 changes: 2 additions & 2 deletions scripts/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def main(gcda_paths, **args):
else:
results = []
with openio(args['use']) as f:
reader = csv.DictReader(f)
reader = csv.DictReader(f, restval='')
for r in reader:
try:
results.append(CoverageResult(**{
Expand Down Expand Up @@ -638,7 +638,7 @@ def main(gcda_paths, **args):
diff_results = []
try:
with openio(args['diff']) as f:
reader = csv.DictReader(f)
reader = csv.DictReader(f, restval='')
for r in reader:
try:
diff_results.append(CoverageResult(**{
Expand Down
4 changes: 2 additions & 2 deletions scripts/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def main(obj_paths, **args):
else:
results = []
with openio(args['use']) as f:
reader = csv.DictReader(f)
reader = csv.DictReader(f, restval='')
for r in reader:
try:
results.append(DataResult(**{
Expand Down Expand Up @@ -392,7 +392,7 @@ def main(obj_paths, **args):
diff_results = []
try:
with openio(args['diff']) as f:
reader = csv.DictReader(f)
reader = csv.DictReader(f, restval='')
for r in reader:
try:
diff_results.append(DataResult(**{
Expand Down

0 comments on commit 7591d9c

Please sign in to comment.