Hello,
I'm quite puzzled with an error I'm having in my code.
In the class ---> LineLogic
I have the following portion of code:
def __init__(self):
self.probe = vtk.vtkProbeFilter()
probe.SetInputConnection(line.GetOutputPort())
probe.SetSourceData(volumeNode.GetImageData())
probe.Update()
In another class ---> LineLogicTest
I had the following portion of code:
logic = LineLogic()
probe = logic.probe
data = probe.GetOutput().GetPointData().GetScalars()
When I try running the program, I get the following error:
AttributeError: LineLogic instance has no attribute 'probe'
How can I solve this error?
Thanks.
--
https://mail.python.org/mailman/listinfo/python-list