From 04fc542dc314c5d6188b3918c139b0c35a926046 Mon Sep 17 00:00:00 2001 From: Frh Date: Wed, 29 Apr 2020 09:45:55 -0700 Subject: [PATCH] Fix off by one error in column identification --- camelot/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camelot/utils.py b/camelot/utils.py index 4a4b786..bce457a 100644 --- a/camelot/utils.py +++ b/camelot/utils.py @@ -564,7 +564,7 @@ def find_columns_coordinates(tls, min_gap=1.0): # Splits: | | | | cols_anchors = list(map( lambda idx: (cols_bounds[idx-1][1] + cols_bounds[idx][0]) / 2.0, - range(1, len(cols_bounds)-1) + range(1, len(cols_bounds)) )) cols_anchors.insert(0, cols_bounds[0][0]) cols_anchors.append(cols_bounds[-1][1])