Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94668

Re: AttributeError: LineLogic instance has no attribute 'probe'

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!enother.net!enother.net!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!gordon
From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: AttributeError: LineLogic instance has no attribute 'probe'
Date Mon, 27 Jul 2015 13:43:31 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 28
Message-ID <mp5ci3$q3j$1@reader1.panix.com> (permalink)
References <mailman.1024.1437982246.3674.python-list@python.org>
NNTP-Posting-Host panix1.panix.com
X-Trace reader1.panix.com 1438004611 26739 166.84.1.1 (27 Jul 2015 13:43:31 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Mon, 27 Jul 2015 13:43:31 +0000 (UTC)
User-Agent nn/6.7.3
X-Received-Bytes 1636
X-Received-Body-CRC 1002868510
Xref csiph.com comp.lang.python:94668

Show key headers only | View raw


In <mailman.1024.1437982246.3674.python-list@python.org> Abder-Rahman Ali <abder.rahman.ali@gmail.com> writes:

> In the class ---> LineLogic

> def __init__(self):
>       self.probe = vtk.vtkProbeFilter()

> In another class ---> LineLogicTest

> 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'

Since you haven't posted the actual complete code, we can only guess
at the problem.

My guess is that you have two different definitions of the LineLogic
class, one of them lacking the probe attribute.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: AttributeError: LineLogic instance has no attribute 'probe' John Gordon <gordon@panix.com> - 2015-07-27 13:43 +0000
  Re: AttributeError: LineLogic instance has no attribute 'probe' Cameron Simpson <cs@zip.com.au> - 2015-07-28 11:44 +1000
    Re: AttributeError: LineLogic instance has no attribute 'probe' John Gordon <gordon@panix.com> - 2015-07-29 17:32 +0000

csiph-web