AttributeError: LineLogic instance has no attribute 'probe'

2015-07-27 Thread Abder-Rahman Ali
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

Object Pool design pattern

2015-07-23 Thread Abder-Rahman Ali
Hello, How can we implement the Object Pool design pattern in Python, especially when the pool consists of array data types? Thanks. -- https://mail.python.org/mailman/listinfo/python-list