Skip to content

Commit

Permalink
Merge pull request #74 from realratchet/master
Browse files Browse the repository at this point in the history
Fix get_headers linecount issue
  • Loading branch information
realratchet authored Aug 16, 2023
2 parents 53bb033 + 00c497a commit 2d5b7f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

| Version | Change |
|:-----------|-----------------------------------------------------|
|2023.6.4| Fix a logic bug in `get_headers` that caused one extra line to be returned than requested. |
|2023.6.3| Updated the way reference counting works. Tablite now tracks references to used pages and cleans them up based on number of references to those pages in the current process. This change allows to handle deep table clones when sending tables via processes (pickling/unpickling), whereas previous implementation would corrupt all tables using same pages due to reference counting asserting that all tables are shallow copies to the same object.
|2023.6.2| Updated `mplite` dependency, changed to soft version requirement to prevent pipeline freezes due to small bugfixes in `mplite`. |
|2023.6.1| Major change of the backend processes. Speed up of ~6x. For more see the [release notes](https://github.com/root-11/tablite/releases/tag/2023.6.1) |
Expand Down
2 changes: 1 addition & 1 deletion tablite/file_reader_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def get_headers(path, delimiter=None, header_row_index=0, text_qualifier=None, l
continue
line = line.rstrip("\n")
lines.append(line)
if n > linecount:
if n >= linecount:
break # break on first

if delimiter is None:
Expand Down
2 changes: 1 addition & 1 deletion tablite/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
major, minor, patch = 2023, 6, 3
major, minor, patch = 2023, 6, 4
__version_info__ = (major, minor, patch)
__version__ = ".".join(str(i) for i in __version_info__)

0 comments on commit 2d5b7f2

Please sign in to comment.