Script execution
This commit is contained in:
+8
-2
@@ -39,7 +39,7 @@ def integrate_image(vertical = True):
|
||||
return integration
|
||||
|
||||
|
||||
class ImageIntegrator(ReadableArray):
|
||||
class ImageIntegrator(ReadableCalibratedArray):
|
||||
def getSize(self):
|
||||
(width,height) = Scienta.getImageSize().tolist()
|
||||
return width
|
||||
@@ -47,10 +47,13 @@ class ImageIntegrator(ReadableArray):
|
||||
def read(self):
|
||||
return to_array(integrate_image(),'d')
|
||||
|
||||
def getCalibration():
|
||||
return ArrayCalibration(0.1, -2.0)
|
||||
|
||||
Integration = ImageIntegrator()
|
||||
|
||||
|
||||
class ImageAngleDistribution(ReadableArray):
|
||||
class ImageAngleDistribution(ReadableCalibratedArray):
|
||||
def getSize(self):
|
||||
(width,height) = Scienta.getImageSize().tolist()
|
||||
return height
|
||||
@@ -58,6 +61,9 @@ class ImageAngleDistribution(ReadableArray):
|
||||
def read(self):
|
||||
return to_array(integrate_image(False),'d')
|
||||
|
||||
def getCalibration():
|
||||
return ArrayCalibration(0.1, -2.0)
|
||||
|
||||
AngleDistribution = ImageAngleDistribution()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user