summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2018-04-24 12:15:57 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2018-04-24 12:16:20 +0100
commit763df4aebb737e7aecaabcf67320de2cb298c153 (patch)
tree9db93d5793181d3206a91c5b8c23b7ec507a9574 /Wrappers/Python
parent6b09916eb23c22aaa09d3a359841dd32393faabe (diff)
downloadframework-763df4aebb737e7aecaabcf67320de2cb298c153.tar.gz
framework-763df4aebb737e7aecaabcf67320de2cb298c153.tar.bz2
framework-763df4aebb737e7aecaabcf67320de2cb298c153.tar.xz
framework-763df4aebb737e7aecaabcf67320de2cb298c153.zip
removes camelcase
addresses #107
Diffstat (limited to 'Wrappers/Python')
-rw-r--r--Wrappers/Python/ccpi/io/reader.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Wrappers/Python/ccpi/io/reader.py b/Wrappers/Python/ccpi/io/reader.py
index c66b1e8..448971f 100644
--- a/Wrappers/Python/ccpi/io/reader.py
+++ b/Wrappers/Python/ccpi/io/reader.py
@@ -233,12 +233,12 @@ class XTEKReader(object):
self.mask_radius = float(line.split('=')[1])
#Read Angles
- angles = self.readAngles()
+ angles = self.read_angles()
self.geometry = AcquisitionGeometry('cone', '3D', angles, pixel_num_h, xpixel_size, pixel_num_v, ypixel_size, -1 * source_x,
detector_x - source_x,
)
- def readAngles(self):
+ def read_angles(self):
"""
Read the angles file .ang or _ctdata.txt file and returns the angles
as an numpy array.
@@ -293,10 +293,10 @@ class XTEKReader(object):
pixels[pixels < 0.0] = 0.000001 # all negative values to approximately 0 as the std log of zero and non negative number is not defined
return pixels
- def getAcquisitionData(self, dimensions=None):
+ def get_acquisition_data(self, dimensions=None):
'''
This method load the acquisition data and given dimension and returns an AcquisitionData Object
'''
- data = self.loadProjection(dimensions)
+ data = self.load_projection(dimensions)
return AcquisitionData(data, geometry=self.geometry)