Skip to content

Commit

Permalink
fix repr for grl
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Oct 17, 2023
1 parent 5aa53a2 commit c3f9617
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/genomicranges/GenomicRangesList.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def __repr__(self):
title=f"GenomicRangesList with {len(self)} genomic elements",
show_header=True,
box=None,
title_justify="left",
)

_rows = []
Expand All @@ -129,7 +130,6 @@ def __repr__(self):

_rows.append(f"Genomic element: [bold]{_elem}")
_rows.append(str(self.ranges[r]))
# _rows.append(_text)

if len(self) > rows_to_show:
if len(self) > 2 * rows_to_show:
Expand All @@ -148,7 +148,6 @@ def __repr__(self):

_rows.append(f"Genomic element: [bold]{_elem}")
_rows.append(str(self.ranges[r]))
# _rows.append(_text)

for _row in _rows:
table.add_row(_row)
Expand Down

0 comments on commit c3f9617

Please sign in to comment.