mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 23:27:54 +00:00
Fix failing unit/system/geometry tool tests. Fix regression where object scales weren't applied in the new add element approach.
This commit is contained in:
@@ -52,7 +52,7 @@ class TestAddPorts(NewFile):
|
||||
for port, expected_matrix in zip(ports, expected_matrices, strict=True):
|
||||
port_matrix = tool.Model.get_element_matrix(port)
|
||||
port_matrix.translation *= si_conversion
|
||||
assert np.allclose(port_matrix, expected_matrix, atol=1.0e-5)
|
||||
assert np.allclose(port_matrix, expected_matrix, atol=1.0e-5), f"Matrix does not match:\n{port_matrix}\n{expected_matrix}"
|
||||
|
||||
def test_run(self):
|
||||
# default use
|
||||
|
||||
Reference in New Issue
Block a user