From 2f713dfa9d8a5dbd6fc08c94f5fc048d8838755c Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Fri, 18 Oct 2019 21:13:05 +0100 Subject: copy list compatible with python <3.3 (#399) closes #398 --- Wrappers/Python/ccpi/processors/Resizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wrappers/Python/ccpi/processors/Resizer.py b/Wrappers/Python/ccpi/processors/Resizer.py index 6ddd823..72ea392 100755 --- a/Wrappers/Python/ccpi/processors/Resizer.py +++ b/Wrappers/Python/ccpi/processors/Resizer.py @@ -72,14 +72,14 @@ class Resizer(DataProcessor): if (self.roi == -1): roi_par = [-1] * ndim else: - roi_par = self.roi.copy() + roi_par = list(self.roi) if (len(roi_par) != ndim): raise Exception('Number of dimensions and number of elements in roi parameter do not match') if (self.binning == 1): binning = [1] * ndim else: - binning = self.binning.copy() + binning = list(self.binning) if (len(binning) != ndim): raise Exception('Number of dimensions and number of elements in binning parameter do not match') -- cgit v1.2.3