Skip to content

Commit

Permalink
add comment about why we use pandas.read_csv in _read_metadata too
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoubelet committed Dec 13, 2024
1 parent ab75b1a commit a2aaf51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tfs/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def _read_metadata(tfs_file_path: pathlib.Path | str) -> _TfsMetaData:
column_names = column_types = None
headers = {}

# Note: using pandas.read_csv handles file compression, we need it :)
# Read the headers, chunk by chunk (line by line) with pandas.read_csv as a
# context manager. Very important: the value of 'sep' here should not be a
# value that can be found in headers (key or value)
Expand Down

0 comments on commit a2aaf51

Please sign in to comment.