AttributeError: LineLogic instance has no attribute 'probe'
Abder-Rahman Ali
abder.rahman.ali at gmail.com
Sun Jul 26 05:11:13 EDT 2015
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150726/7cc0a6c9/attachment.html>
More information about the Python-list
mailing list