Closed abey79 closed 3 years ago
This test appears to be somewhat fragile:
======================================================================
212FAIL: test_arc_len_circle_line (test_arc_length.TestElementArcLength)
213Known chord vs line
214----------------------------------------------------------------------
215Traceback (most recent call last):
216 File "/home/travis/build/meerk40t/svgelements/test/test_arc_length.py", line 296, in test_arc_len_circle_line
217 self.assertAlmostEqual(chord, length)
218AssertionError: 58.20358497566716 != 58.20358482449973 within 7 places
Failed test is nothing to do with this PR. I might have to give it a broader error range.
test_arc_length.TestElementArcLength
Traceback (most recent call last): File "/home/travis/build/meerk40t/svgelements/test/test_arc_length.py", line 296, in test_arc_len_circle_line self.assertAlmostEqual(chord, length) AssertionError: 58.20358497566716 != 58.20358482449973 within 7 places
This tiny fix makes
Point
compatible with numpy:This is greatly useful to convert Polygon/Polyline's
points
to numpy array: