Skip to content

Commit

Permalink
Support reading sif files with more than 3 cols
Browse files Browse the repository at this point in the history
  • Loading branch information
pablormier committed Apr 26, 2024
1 parent b62d85a commit c70b019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corneto/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def _read_sif_iter(
for i, line in enumerate(reader):
if has_header and i == 0:
continue
if len(line) != 3:
raise ValueError(f"Invalid SIF line: {line}: expected 3 columns")
if len(line) <= 2:
raise ValueError(f"Invalid SIF line: {line}: expected at least 3 columns")
s, d, t = [line[idx] for idx in column_order]
if discard_self_loops and s == t:
continue
Expand Down

0 comments on commit c70b019

Please sign in to comment.