diff options
-rwxr-xr-x | Wrappers/Python/ccpi/framework/TestData.py | 6 |
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]))))
|