ladisk / pyuff

This module defines an UFF class to manipulate with the UFF (Universal File Format) files.
Other
58 stars 40 forks source link

Error reading dataset 2414 #64

Closed theScriptingEngineer closed 1 year ago

theScriptingEngineer commented 1 year ago

Hello,

when reading the sets in the example file '2411 and 2414.uff' an error occurs.

In order to reproduce:

import pyuff
uff_file = pyuff.UFF('../pyuff/data/2411 and 2414.uff')
#uff_file = pyuff.UFF('../pyuff/data/beam.uff')

typesInFile = uff_file.get_set_types()
print(typesInFile)

data: list[dict] = uff_file.read_sets()

Records 14 and 15 are repeated for each node, but I don't see this reflected in the code.

Thanks, Frederik

jankoslavic commented 1 year ago

Please check: https://github.com/ladisk/pyuff/tree/2411-tests ttys

theScriptingEngineer commented 1 year ago

Ok. Thanks.

jankoslavic commented 1 year ago

Ok. I will close this issue. The current implementation is maybe not perfect with regard to speed. Proposals welcome