summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-05-10 15:21:08 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2019-05-10 15:21:08 +0100
commit2612b73ca1d4581364720b4646805cdcc430f3cb (patch)
tree23f2f7e7f732300d6d1aecd47482e84760f6d6a4
parent604cb98751375bf3b2b7861ed55f52452c1e53ac (diff)
downloadframework-2612b73ca1d4581364720b4646805cdcc430f3cb.tar.gz
framework-2612b73ca1d4581364720b4646805cdcc430f3cb.tar.bz2
framework-2612b73ca1d4581364720b4646805cdcc430f3cb.tar.xz
framework-2612b73ca1d4581364720b4646805cdcc430f3cb.zip
commented out line
-rwxr-xr-xWrappers/Python/ccpi/framework/TestData.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Wrappers/Python/ccpi/framework/TestData.py b/Wrappers/Python/ccpi/framework/TestData.py
index 45ee1d4..83b2ee1 100755
--- a/Wrappers/Python/ccpi/framework/TestData.py
+++ b/Wrappers/Python/ccpi/framework/TestData.py
@@ -33,7 +33,7 @@ class TestData(object):
sdata[round(M/8):round(7*M/8),round(3*M/8):round(5*M/8)] = 1
ig = ImageGeometry(voxel_num_x = N, voxel_num_y = M, dimension_labels=[ImageGeometry.HORIZONTAL_X, ImageGeometry.HORIZONTAL_Y])
data = ig.allocate()
- data.geometry = ig
+ #data.geometry = ig
data.fill(sdata)
else:
tmp = Image.open(os.path.join(self.data_dir, which))
@@ -46,12 +46,12 @@ class TestData(object):
dimension_labels=[ImageGeometry.HORIZONTAL_X, ImageGeometry.HORIZONTAL_Y, ImageGeometry.CHANNEL])
data = ig.allocate()
- data.geometry = ig
+ #data.geometry = ig
#newsize = (size[0], size[1], len(bands))
else:
ig = ImageGeometry(voxel_num_x = size[0], voxel_num_y = size[1], dimension_labels=[ImageGeometry.HORIZONTAL_X, ImageGeometry.HORIZONTAL_Y])
data = ig.allocate()
- data.geometry = ig
+ #data.geometry = ig
#newsize = size
data.fill(numpy.array(tmp.resize((size[1],size[0]))))