UNV Reader

Asked by Przemek on 2020-05-04

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:
2020-05-04
Last query:
2020-05-04
Last reply:
2020-05-04
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

Przemek (przemekn) said : #2

No it works. Thanks! :)

Przemek (przemekn) said : #3

*Now