Skip to content

Commit

Permalink
Merge pull request #6 from davidanthoff/fix-skipstartrows-etc
Browse files Browse the repository at this point in the history
Fix bug related to skipstartrows etc.
  • Loading branch information
davidanthoff authored May 17, 2018
2 parents bd0089e + 7d63166 commit 2d44233
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# ExcelFiles.jl v0.3.1
* Fix bug related to skipstartrows etc.

# ExcelFiles.jl v0.3.0
* Incorporate all table functionality from ExcelReaders.jl.
* Drop dependency on DataTables.jl and DataFrames.jl.
Expand Down
5 changes: 4 additions & 1 deletion src/ExcelFiles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ function IteratorInterfaceExtensions.getiterator(file::ExcelFile)
sheet = excelfile.workbook[:sheet_by_name](file.range)
startrow, startcol, endrow, endcol = ExcelReaders.convert_args_to_row_col(sheet; file.keywords...)

_readxl(excelfile, file.range, startrow, startcol, endrow, endcol; file.keywords...)
keywords2 = copy(file.keywords)
keywords2 = filter(i->!(i[1] in (:skipstartrows, :skipstartcols, :nrows, :ncols)), file.keywords)

_readxl(excelfile, file.range, startrow, startcol, endrow, endcol; keywords2...)
end

return create_tableiterator(column_data, col_names)
Expand Down

0 comments on commit 2d44233

Please sign in to comment.