summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authorSrikanth Nagella <srikanth.nagella@stfc.ac.uk>2018-03-16 09:42:02 +0000
committerSrikanth Nagella <srikanth.nagella@stfc.ac.uk>2018-03-16 09:42:02 +0000
commit6f9d46bf5e66df2c060b732fd8d34efe73df8fd9 (patch)
treeb781f3b6b22d0b0c346a163f7b509d5048bd9368 /Wrappers
parent03021b2c22e86821c1df1f89d5774062120bbc3c (diff)
downloadframework-6f9d46bf5e66df2c060b732fd8d34efe73df8fd9.tar.gz
framework-6f9d46bf5e66df2c060b732fd8d34efe73df8fd9.tar.bz2
framework-6f9d46bf5e66df2c060b732fd8d34efe73df8fd9.tar.xz
framework-6f9d46bf5e66df2c060b732fd8d34efe73df8fd9.zip
Readers return AcquisitionData along with Geometry
Diffstat (limited to 'Wrappers')
-rw-r--r--Wrappers/Python/ccpi/io/reader.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/Wrappers/Python/ccpi/io/reader.py b/Wrappers/Python/ccpi/io/reader.py
index 4f7e288..ca5b380 100644
--- a/Wrappers/Python/ccpi/io/reader.py
+++ b/Wrappers/Python/ccpi/io/reader.py
@@ -166,13 +166,9 @@ class NexusReader(object):
This method load the acquisition data and given dimension and returns an AcquisitionData Object
'''
data = self.loadProjection(dimensions)
- return AcquisitionData(data)
+ geometry = AcquisitionGeometry('parallel', '3D', self.getProjectionAngles())
+ return AcquisitionData(data, geometry=geometry)
- def getAcquisitionGeometry(self, dimensions=None):
- '''
- This method creates the acquisition geometry from a given dimension and return the created object
- '''
- return AcquisitionGeometry('parallel', '3D', self.getProjectionAngles())
class XTEKReader(object):
'''
@@ -292,10 +288,5 @@ class XTEKReader(object):
This method load the acquisition data and given dimension and returns an AcquisitionData Object
'''
data = self.loadProjection(dimensions)
- return AcquisitionData(data)
+ return AcquisitionData(data, geometry=self.geometry)
- def getAcquisitionGeometry(self, dimensions=None):
- '''
- This method creates the acquisition geometry from a given dimension and return the created object
- '''
- return self.geometry \ No newline at end of file