Skip to content

Commit

Permalink
Skip a sheet if the number of rows or columns are not the same
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnKendrick committed Dec 23, 2018
1 parent bef76b5 commit 1f9e03c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions checkexcel
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ for sheet in ['Main','Settings','Scenarios','Molar Absorption','Absorption','Rea
if max_rows1 != max_rows2:
print('Error - the number rows in the sheet are not the same',sheet,max_rows1,max_rows2)
nerrors += 1
continue
if max_columns1 != max_columns2:
print('Error - the number columns in the sheet are not the same',sheet,max_columns1,max_columns2)
nerrors += 1
continue
#
# Loop over rows
#
Expand Down

0 comments on commit 1f9e03c

Please sign in to comment.