From d2ef7586721bd3dde2b52dbd694d330a70530850 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Thu, 18 Jan 2018 02:32:54 +0300 Subject: [PATCH] ValueSeriesGenerator: fix Mirrored not working when Step is negative --- lattice2ValueSeriesGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lattice2ValueSeriesGenerator.py b/lattice2ValueSeriesGenerator.py index b772a34..a207a49 100644 --- a/lattice2ValueSeriesGenerator.py +++ b/lattice2ValueSeriesGenerator.py @@ -229,7 +229,7 @@ class ValueSeriesGenerator: new_list = [] for v in list_evenDistrib: new_list.append(v) - if v > 1e-12: + if abs(v) > 1e-12: new_list.append(-v) list_evenDistrib = new_list