UNV Reader

Asked by Przemek

Hi,

I have a problm with UNV reader. When I want to import a geometry an error occurs:

363 if returnConnectivityTable:
    364 return unvReader.facets, unvReader.nodes, unvReader.elements
--> 365 return facets
    366
    367

NameError: global name 'facets' is not defined

I have Yade 1.20.0 version.
What could be the reason of this problem?

BR
Przemek

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Przemek
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,
the reason is that it was a bug in 1.20.0, fixed in [1].
You can either use a newer version or fix this manually (facets -> unvReader.facets) in py/import.py file
cheers
Jan

[1] https://gitlab.com/yade-dev/trunk/-/commit/925f7358f89e17ddfa91ee4b657a3cc6f10440e7

Revision history for this message
Przemek (przemekn) said :
#2

No it works. Thanks! :)

Revision history for this message
Przemek (przemekn) said :
#3

*Now