From 015e819d4cd2ccdffe04fa04201fdadd4399ef13 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sat, 17 Nov 2018 09:29:05 +0100 Subject: [PATCH] python3 does not allow to compare tuple/list with int --- processing/pre/geom_fromVoronoiTessellation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/processing/pre/geom_fromVoronoiTessellation.py b/processing/pre/geom_fromVoronoiTessellation.py index 404e7f000..359acb366 100755 --- a/processing/pre/geom_fromVoronoiTessellation.py +++ b/processing/pre/geom_fromVoronoiTessellation.py @@ -245,9 +245,9 @@ for name in filenames: hasEulers = table.label_dimension(options.eulers) == 3 hasWeights = table.label_dimension(options.weight) == 1 and options.laguerre - if np.any(info['grid'] < 1): errors.append('invalid grid a b c.') - if np.any(info['size'] <= 0.0) \ - and np.all(info['grid'] < 1): errors.append('invalid size x y z.') + if np.any(np.array(info['grid']) < 1): errors.append('invalid grid a b c.') + if np.any(np.array(info['size']) <= 0.0) \ + and np.all(np.array(info['grid']) < 1): errors.append('invalid size x y z.') else: for i in range(3): if info['size'][i] <= 0.0: # any invalid size?