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