Skip to content

Commit

Permalink
fix ind file parsing: use re.split
Browse files Browse the repository at this point in the history
  • Loading branch information
tschuelia committed Jan 14, 2025
1 parent 4c95fef commit b0e183c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandora/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def get_sample_info(self) -> pd.Series:

sample_ids = []
for sample in self._ind_file.open():
sample_id, _, _ = sample.split()
sample_id, _, _ = re.split(r"\s+", sample.strip(), maxsplit=2)
sample_ids.append(sample_id.strip())

return pd.Series(sample_ids)
Expand Down

0 comments on commit b0e183c

Please sign in to comment.