compas-dev / compas-dev/compas_ifc
shape.transformation.matrix.data AttributeError: 'tuple' object has no attribute 'data'
- Dominant language
- Python
- Stars
- 26
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
>python3 -u "testifc.py"
Opened file: duplex.ifc
Loading geometries...
Traceback (most recent call last):
File "C:\Users\\Documents\tests\testifc.py", line 3, in
model = Model("duplex.ifc")
^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\compas_ifc\model.py", line 83, in __init__
self.open(filepath, load_geometries=load_geometries)
File "C:\Users\\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\compas_ifc\model.py", line 86, in open
self.reader.open(filepath, load_geometries=load_geometries)
File "C:\Users\\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\compas_ifc\reader.py", line 70, in open
self.load_geometries()
File "C:\Users\\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\compas_ifc\reader.py", line 174, in load_geometries
matrix = shape.transformation.matrix.data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'data'
**To Reproduce**
```
from compas_ifc.model import Model
model = Model("duplex.ifc")
model.show()
```
compas_ifc.__version__: '0.5.0'
Contributor guide
Assessment
This issue has not been assessed yet.