bugpyFormex - Bugs: bug #43251, Problems recognizing classes in...

 
 

bug #43251: Problems recognizing classes in some plugins when isinstance is used

Submitted by:  francesco <francio>
Submitted on:  Thu 18 Sep 2014 05:55:18 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 18 Sep 2014 06:37:49 PM UTC, comment #4:

Sorry I got the problem. I was importing an old library in which the import was done not in the proper way

from plugins.curve import PolyLine

instead of

from pyformex.plugins.curve import PolyLine

francesco <francio>
Project Member
Thu 18 Sep 2014 06:20:14 PM UTC, comment #3:

Without correct information on what exactly you are executing, there is no way we can have a look at the problem.

What is .toCurve?
What is polyLine?
What is c?

Please create a correct minimal script producing the error.

Benedict Verhegghe <bverheg>
Project Administrator
Thu 18 Sep 2014 06:14:20 PM UTC, comment #2:

Small update the problem raises when I use .toCurve
if I do polyLine(c.toCurve().coords) it works
weird... What is the problem?

francesco <francio>
Project Member
Thu 18 Sep 2014 06:07:12 PM UTC, comment #1:

Maybe you can specify what function causes the error?

Benedict Verhegghe <bverheg>
Project Administrator
Thu 18 Sep 2014 05:55:18 PM UTC, original submission:

I am trying to convert a Polyline in vtk data
I import in my script

from pyformex.plugins.curve import PolyLine

but the function does not recognize the class and raise an error

conversion of <class 'plugins.curve.PolyLine'> type to vtkPolyData is not yet supported

becuase the isinstance does not recognize it as PolyLine
but checks teh entire path

Why that happen? How to import correctly

francesco <francio>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bverheg (Posted a comment)
  • -unavailable- added by francio (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 18 Sep 2014 06:37:49 PM UTCfrancioOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1