From c3f96172d19a380fca5f6c29a7e54f8aa3cfac99 Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Tue, 17 Oct 2023 07:15:51 -0700 Subject: [PATCH] fix repr for grl --- src/genomicranges/GenomicRangesList.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/genomicranges/GenomicRangesList.py b/src/genomicranges/GenomicRangesList.py index 483dbee..e067beb 100644 --- a/src/genomicranges/GenomicRangesList.py +++ b/src/genomicranges/GenomicRangesList.py @@ -113,6 +113,7 @@ def __repr__(self): title=f"GenomicRangesList with {len(self)} genomic elements", show_header=True, box=None, + title_justify="left", ) _rows = [] @@ -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: @@ -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)