Skip to content

Commit

Permalink
small fixes from PR reveiw
Browse files Browse the repository at this point in the history
nitpick fixes
  • Loading branch information
anish-mudaraddi committed Mar 31, 2023
1 parent 7126547 commit efb5765
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion iriscasttools/iriscasttools/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def parse_args(inp_args):
logger.warning("Received invalid command-line arguments %s, ignoring", unknown)

# ignore include header if csv arg not set
if args.include_header and not args.as_csv:
if not args.as_csv:
args.include_header = False

return args
9 changes: 5 additions & 4 deletions iriscasttools/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ def read_test_from_file(test_fp, expected_out_fp):
test_str = txt_file.read()

with open(expected_out_fp, "r", encoding="UTF-8") as csv_file:
csv_out = csv.DictReader(csv_file)
for row in csv_out:
expected_out = row
break
reader = csv.reader(csv_file)
headers = next(reader)
row = next(reader)

expected_out = dict(zip(headers, row))

return test_str, expected_out

Expand Down

0 comments on commit efb5765

Please sign in to comment.