diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2018-03-08 14:48:28 +0000 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2018-03-08 14:48:28 +0000 |
commit | af182a56f321d2d03c23d1627991f539a8e2d4bc (patch) | |
tree | 8fc24f8d6ae9ac14d58f1782bb4171253a7cc97b | |
parent | 543cf998265aa4f3cf42bce3757820139ddfa6ee (diff) | |
download | framework-af182a56f321d2d03c23d1627991f539a8e2d4bc.tar.gz framework-af182a56f321d2d03c23d1627991f539a8e2d4bc.tar.bz2 framework-af182a56f321d2d03c23d1627991f539a8e2d4bc.tar.xz framework-af182a56f321d2d03c23d1627991f539a8e2d4bc.zip |
fix of sinogram axis label
-rw-r--r-- | Wrappers/Python/ccpi/framework.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Wrappers/Python/ccpi/framework.py b/Wrappers/Python/ccpi/framework.py index 7324a5c..5a507d9 100644 --- a/Wrappers/Python/ccpi/framework.py +++ b/Wrappers/Python/ccpi/framework.py @@ -543,7 +543,7 @@ class SinogramData(DataSet): 'vertical' , 'horizontal'] else: shape = (channels , num_of_angles, horiz) - dim_labels = ['angle' , 'angle' , + dim_labels = ['channel' , 'angle' , 'horizontal'] else: if vert > 1: @@ -891,7 +891,7 @@ if __name__ == '__main__': vgeometry = geoms.VolumeGeometry(voxel_num_x=2, voxel_num_y=3, channels=2) vol = VolumeData(geometry=vgeometry) - sgeometry = geoms.SinogramGeometry(dimension=2, angles=10, + sgeometry = geoms.SinogramGeometry(dimension=2, angles=numpy.linspace(0, 180, num=20), geom_type='parallel', pixel_num_v=3, pixel_num_h=5 , channels=2) sino = SinogramData(geometry=sgeometry) |