diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-10-18 21:13:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-18 21:13:05 +0100 |
commit | 2f713dfa9d8a5dbd6fc08c94f5fc048d8838755c (patch) | |
tree | 76e6e8fbfa6499188af579fa582383e3b0816cf5 /Wrappers/Python | |
parent | 15313a44f63389afdaa49b5379f89d1bfc064e07 (diff) | |
download | framework-2f713dfa9d8a5dbd6fc08c94f5fc048d8838755c.tar.gz framework-2f713dfa9d8a5dbd6fc08c94f5fc048d8838755c.tar.bz2 framework-2f713dfa9d8a5dbd6fc08c94f5fc048d8838755c.tar.xz framework-2f713dfa9d8a5dbd6fc08c94f5fc048d8838755c.zip |
copy list compatible with python <3.3 (#399)
closes #398
Diffstat (limited to 'Wrappers/Python')
-rwxr-xr-x | Wrappers/Python/ccpi/processors/Resizer.py | 4 |
1 files 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')
|