File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4444- Added ``TreeSequence._repr_html_ `` for use in jupyter notebooks.
4545 (:user: `benjeffery `, :issue: `872 `, :pr: `923 `)
4646
47- - Added ``TreeSequence.__repr__ `` to display a summary for terminal usage.
47+ - Added ``TreeSequence.__str__ `` to display a summary for terminal usage.
4848 (:user: `benjeffery `, :issue: `938 `, :pr: `985 `)
4949
5050- Added ``TableCollection.dump `` and ``TableCollection.load ``. This allows table
Original file line number Diff line number Diff line change @@ -1456,9 +1456,9 @@ def test_html_repr(self):
14561456 for table in ts .tables .name_map :
14571457 assert f"<td>{ table .capitalize ()} </td>" in html
14581458
1459- def test_repr (self ):
1459+ def test_str (self ):
14601460 for ts in get_example_tree_sequences ():
1461- s = repr (ts )
1461+ s = str (ts )
14621462 assert len (s ) > 999
14631463 assert re .search (rf"║Trees *│ *{ ts .num_trees } ║" , s )
14641464 for table in ts .tables .name_map :
Original file line number Diff line number Diff line change @@ -3443,7 +3443,7 @@ def dump_text(
34433443 )
34443444 print (row , file = provenances )
34453445
3446- def __repr__ (self ):
3446+ def __str__ (self ):
34473447 ts_rows = [
34483448 ["Trees" , str (self .num_trees )],
34493449 ["Sequence Length" , str (self .sequence_length )],
You can’t perform that action at this time.
0 commit comments