This commit is contained in:
Andrej730
2025-02-11 18:13:43 +05:00
parent 57d7d83ebb
commit 5b7964f04c
5 changed files with 22 additions and 14 deletions
+3 -1
View File
@@ -52,7 +52,9 @@ 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), f"Matrix does not match:\n{port_matrix}\n{expected_matrix}"
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