From e3156ba191d3353e98e9a70624d7dbee64291d2f Mon Sep 17 00:00:00 2001 From: SPeillet <peillet.seb@protonmail.com> Date: Thu, 5 Sep 2019 15:26:54 +0200 Subject: [PATCH] BUG: binary split in python3 --- preprocess.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/preprocess.py b/preprocess.py index b5351a8..1d1800e 100644 --- a/preprocess.py +++ b/preprocess.py @@ -7,8 +7,9 @@ import sys from mtdUtils import setNoDataValue -def getSizeFromOTBInfo(str): - str_lines = str.split('\n') +def getSizeFromOTBInfo(string): + string = str(string) + str_lines = string.split('\\n') line = None W, H = -1, -1 for x in str_lines: -- GitLab