From 4e47aabb1f16e28c43d2654a7ecf15928894ddab Mon Sep 17 00:00:00 2001 From: Verena Neufeld Date: Wed, 29 Jul 2020 16:34:27 +0200 Subject: [PATCH] for now, just put in some number to set width have used old, inbuilt pandas functionality which got moved [todo] - print differently --- tools/reblock_hande.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/reblock_hande.py b/tools/reblock_hande.py index e77b26a26..fd0ed704a 100755 --- a/tools/reblock_hande.py +++ b/tools/reblock_hande.py @@ -218,8 +218,9 @@ def parse_args(args): try: cols = pd.util.terminal.get_terminal_size()[0] except AttributeError: - # terminal module moved in pandas 0.20 - cols = pd.io.formats.terminal.get_terminal_size()[0] + # terminal module moved in pandas 0.20, set to some value. + # [todo] - print out pandas dataframe directly. + cols = 110 if not sys.stdout.isatty(): cols = -1