open-space-toolkit-mathematics 4.0.0__py310-none-manylinux2014_aarch64.whl → 4.1.0__py310-none-manylinux2014_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of open-space-toolkit-mathematics might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: open-space-toolkit-mathematics
3
- Version: 4.0.0
3
+ Version: 4.1.0
4
4
  Summary: Geometry, curve fitting, optimization.
5
5
  Author: Open Space Collective
6
6
  Author-email: contact@open-space-collective.org
@@ -1,7 +1,7 @@
1
1
  ostk/__init__.py,sha256=epnVn2PwdQkUDZ1msqBRO5nEZIOUBIq-IfK3IlNPijE,21
2
- ostk/mathematics/OpenSpaceToolkitMathematicsPy.cpython-310-aarch64-linux-gnu.so,sha256=yIqqsMawn2Pz65kYSnj7cwlUMIjLnipTietGmegRNdc,1525408
2
+ ostk/mathematics/OpenSpaceToolkitMathematicsPy.cpython-310-aarch64-linux-gnu.so,sha256=i-ebh9FsdE_8mlbU06A33WfE2Oy4cn620qfOv6XvHQw,1521336
3
3
  ostk/mathematics/__init__.py,sha256=U81I6jh2hIPyuT4dtZjNcLi-CQ8yXIvtFn32tVK1YCY,92
4
- ostk/mathematics/libopen-space-toolkit-mathematics.so.4,sha256=ZzRpwMuFq2xVhlY7yyVXiFkN0iBEa1U9iiMo9Ja2244,2496952
4
+ ostk/mathematics/libopen-space-toolkit-mathematics.so.4,sha256=xnL1DaFwUYYMVtCymNUZ0X_I-visG0ISIACY67HfxtA,2505264
5
5
  ostk/mathematics/test/__init__.py,sha256=epnVn2PwdQkUDZ1msqBRO5nEZIOUBIq-IfK3IlNPijE,21
6
6
  ostk/mathematics/test/test_object.py,sha256=WtksTu9zz8_UNkQYKLO64nNBFDBkRWM_DXFuAWTdKUM,1027
7
7
  ostk/mathematics/test/curve_fitting/__init__.py,sha256=epnVn2PwdQkUDZ1msqBRO5nEZIOUBIq-IfK3IlNPijE,21
@@ -22,7 +22,7 @@ ostk/mathematics/test/geometry/d2/object/test_line.py,sha256=Dr0uHk-gFLJcsC69W1D
22
22
  ostk/mathematics/test/geometry/d2/object/test_linestring.py,sha256=EucjDiSSQ2Ab3-huWtfanE6Cb0Jazb78LUuiFnpe8Mo,5933
23
23
  ostk/mathematics/test/geometry/d2/object/test_multipolygon.py,sha256=kxLhoygnMIiSreFvf3C2nycFpZjZCHcit96cN0y5QYo,3543
24
24
  ostk/mathematics/test/geometry/d2/object/test_point.py,sha256=Eoq1FAYB6W4yrjpassgG9PRb3Zdg2DOjpmTZZuNiQ9M,6457
25
- ostk/mathematics/test/geometry/d2/object/test_point_set.py,sha256=s0lS4BejYZw136c_IMYXvLB2vE51ezPW0PpZhL0Hm9E,3253
25
+ ostk/mathematics/test/geometry/d2/object/test_point_set.py,sha256=hxrck57IHXDkZa0FV717eAvj_sbDtUIqC2LX-ae4EZ0,3337
26
26
  ostk/mathematics/test/geometry/d2/object/test_polygon.py,sha256=fHEJDXmzgl24-eQ3gMGIBwNZsEa-3F6_8T6eLzaVgFI,12621
27
27
  ostk/mathematics/test/geometry/d2/object/test_segment.py,sha256=M1QTkseGo1ADeslcEl5JzlQEc_1-1LpBV4av_FuPX7E,3072
28
28
  ostk/mathematics/test/geometry/d3/__init__.py,sha256=epnVn2PwdQkUDZ1msqBRO5nEZIOUBIq-IfK3IlNPijE,21
@@ -35,7 +35,7 @@ ostk/mathematics/test/geometry/d3/object/test_cuboid.py,sha256=xJp6ImRnkNw_k6Tt8
35
35
  ostk/mathematics/test/geometry/d3/object/test_line.py,sha256=d-CvDjXeH1WQcleCU2yt4FdHLhWgy45NGzn3mEwy6xE,1690
36
36
  ostk/mathematics/test/geometry/d3/object/test_linestring.py,sha256=L2gEJGDOaP17RgbLbX0-kBjskW_MrPLxVyf_l9yyxag,5938
37
37
  ostk/mathematics/test/geometry/d3/object/test_point.py,sha256=-5Cjy3Pru3UWbMO7vBDNiJYfUkqVVxxZtDgsMYYaosc,6611
38
- ostk/mathematics/test/geometry/d3/object/test_point_set.py,sha256=p5A1gM9UfB_-GgEavN-7Z8IgFc4qp1nAnHRYKTecvS0,3506
38
+ ostk/mathematics/test/geometry/d3/object/test_point_set.py,sha256=ceMRMNcnVAAsuMWORMW6wwJDNbTtMn3y-4rWR04QnPM,3605
39
39
  ostk/mathematics/test/geometry/d3/object/test_polygon.py,sha256=7ZjucWMsNzppN3pptxHgGgOtOGv1grseT7VnctgOJP4,4262
40
40
  ostk/mathematics/test/geometry/d3/object/test_segment.py,sha256=HWg-BCJoa74EgWlvUPd85v_qR2p9THi0ejhtG0EQNEA,4027
41
41
  ostk/mathematics/test/geometry/d3/objects/test_cuboid.py,sha256=uIDwPbkygXFIopKc2kayKYgadNfOKD_zxf3w2J4DfTY,471
@@ -46,11 +46,11 @@ ostk/mathematics/test/geometry/d3/transformation/rotation/test_quaternion.py,sha
46
46
  ostk/mathematics/test/geometry/d3/transformation/rotation/test_rotation_matrix.py,sha256=pD-zR2e1uMTD2eenjQiFPPMKji_gdnuYPuDYQ7pGgUg,1055
47
47
  ostk/mathematics/test/geometry/d3/transformation/rotation/test_rotation_vector.py,sha256=ngzrvqH_0QRGwNsWc2RupUkpsTU5vZI-eoh5q2BkKRQ,1568
48
48
  ostk/mathematics/test/object/__init__.py,sha256=epnVn2PwdQkUDZ1msqBRO5nEZIOUBIq-IfK3IlNPijE,21
49
- ostk/mathematics/test/object/test_interval.py,sha256=yZT4eo5kM4iBE1GBoOxlESaUl5QL3xdsZwrG-6fA7ME,17941
49
+ ostk/mathematics/test/object/test_interval.py,sha256=UhC_o_JVtGCh_BgfFyuEBKddocoNcFP0pfBviUReuhE,17632
50
50
  ostk/mathematics/test/object/test_vector.py,sha256=5MG3s8vhgoGKAIc5GzswlZObyIrJDIPNtsEd5wNORPU,76
51
- ostk/mathematics/test/solver/test_numerical_solver.py,sha256=YJo-z97w1tkRFJOAWjjvPywkBVCfCr9MJzuNi_cVIBg,5674
52
- open_space_toolkit_mathematics-4.0.0.dist-info/METADATA,sha256=lfPPhP01fMLTuEEtbngar4hojEeNLaldVw7Gkn7CQXc,1801
53
- open_space_toolkit_mathematics-4.0.0.dist-info/WHEEL,sha256=qqN5URp-VURm8LPVcwSxCMMwBbCqD2CU32siGCKjjV0,111
54
- open_space_toolkit_mathematics-4.0.0.dist-info/top_level.txt,sha256=zOR18699uDYnafgarhL8WU_LmTZY_5NVqutv-flp_x4,5
55
- open_space_toolkit_mathematics-4.0.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
56
- open_space_toolkit_mathematics-4.0.0.dist-info/RECORD,,
51
+ ostk/mathematics/test/solver/test_numerical_solver.py,sha256=5Z7uXlvfQ_pjrSAOd7ff-ky5pjRZk3-R0F565FfCUrU,5672
52
+ open_space_toolkit_mathematics-4.1.0.dist-info/METADATA,sha256=rQhnfeYEqP1hDLVJ18_o8Q9HYs_lLfYxZ-urkv62e-s,1801
53
+ open_space_toolkit_mathematics-4.1.0.dist-info/WHEEL,sha256=qqN5URp-VURm8LPVcwSxCMMwBbCqD2CU32siGCKjjV0,111
54
+ open_space_toolkit_mathematics-4.1.0.dist-info/top_level.txt,sha256=zOR18699uDYnafgarhL8WU_LmTZY_5NVqutv-flp_x4,5
55
+ open_space_toolkit_mathematics-4.1.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
56
+ open_space_toolkit_mathematics-4.1.0.dist-info/RECORD,,
@@ -2,8 +2,6 @@
2
2
 
3
3
  from collections.abc import Iterator, Iterable
4
4
 
5
- import pytest
6
-
7
5
  import ostk.mathematics as mathematics
8
6
 
9
7
 
@@ -93,6 +91,9 @@ class TestPointSet:
93
91
  assert isinstance(iter(point_set), Iterator)
94
92
  assert isinstance(iter(point_set), Iterable)
95
93
 
94
+ def test_get_item_success(self, point_set: PointSet):
95
+ assert point_set[0] is not None
96
+
96
97
  # def test_is_near_success(self):
97
98
 
98
99
  # def test_get_point_closest_to_success(self):
@@ -104,6 +104,9 @@ class TestPointSet:
104
104
  assert isinstance(iter(point_set), Iterator)
105
105
  assert isinstance(iter(point_set), Iterable)
106
106
 
107
+ def test_get_item_success(self, point_set: PointSet):
108
+ assert point_set[0] is not None
109
+
107
110
  # def test_is_near_success(self):
108
111
 
109
112
  # def test_get_point_closest_to_success(self):
@@ -35,39 +35,33 @@ class TestInterval:
35
35
  interval_1 = RealInterval(-4.31, 1.0, Type.Open)
36
36
  interval_2 = RealInterval(-2.0, -1.0, Type.Closed)
37
37
  interval_3 = RealInterval(3.5, 4567.35566, Type.HalfOpenRight)
38
- interval_4 = RealInterval(1.45, 1.45, Type.Open)
39
- interval_5 = RealInterval(1.45, 1.45, Type.Closed)
38
+ interval_4 = RealInterval(1.45, 1.45, Type.Closed)
40
39
 
41
40
  assert isinstance(interval_1, RealInterval)
42
41
  assert isinstance(interval_2, RealInterval)
43
42
  assert isinstance(interval_3, RealInterval)
44
43
  assert isinstance(interval_4, RealInterval)
45
- assert isinstance(interval_5, RealInterval)
46
44
  assert interval_1 is not None
47
45
  assert interval_2 is not None
48
46
  assert interval_3 is not None
49
47
  assert interval_4 is not None
50
- assert interval_5 is not None
51
48
 
52
49
  with pytest.raises(TypeError):
53
50
  interval = RealInterval(3.0, 1, Type.Closed)
54
51
 
55
- interval_6 = RealInterval(Real(-4.31), Real(1.0), Type.Open)
56
- interval_7 = RealInterval(Real(-2.0), Real(-1.0), Type.Closed)
57
- interval_8 = RealInterval(Real(3.5), Real(4567.35566), Type.HalfOpenRight)
58
- interval_9 = RealInterval(Real(1.45), Real(1.45), Type.Open)
59
- interval_10 = RealInterval(Real(1.45), Real(1.45), Type.Closed)
52
+ interval_5 = RealInterval(Real(-4.31), Real(1.0), Type.Open)
53
+ interval_6 = RealInterval(Real(-2.0), Real(-1.0), Type.Closed)
54
+ interval_7 = RealInterval(Real(3.5), Real(4567.35566), Type.HalfOpenRight)
55
+ interval_8 = RealInterval(Real(1.45), Real(1.45), Type.Closed)
60
56
 
57
+ assert isinstance(interval_5, RealInterval)
61
58
  assert isinstance(interval_6, RealInterval)
62
59
  assert isinstance(interval_7, RealInterval)
63
60
  assert isinstance(interval_8, RealInterval)
64
- assert isinstance(interval_9, RealInterval)
65
- assert isinstance(interval_10, RealInterval)
61
+ assert interval_5 is not None
66
62
  assert interval_6 is not None
67
63
  assert interval_7 is not None
68
64
  assert interval_8 is not None
69
- assert interval_9 is not None
70
- assert interval_10 is not None
71
65
 
72
66
  # Interval Bounds
73
67
  a = -4.31
@@ -30,8 +30,8 @@ def numerical_solver_default_inputs() -> (
30
30
  log_type = NumericalSolver.LogType.NoLog
31
31
  stepper_type = NumericalSolver.StepperType.RungeKuttaCashKarp54
32
32
  initial_time_step = 5.0
33
- relative_tolerance = 1.0e-15
34
- absolute_tolerance = 1.0e-15
33
+ relative_tolerance = 1.0e-12
34
+ absolute_tolerance = 1.0e-12
35
35
 
36
36
  return (
37
37
  log_type,
@@ -53,8 +53,8 @@ def numerical_solver_conditional() -> NumericalSolver:
53
53
  NumericalSolver.LogType.NoLog,
54
54
  NumericalSolver.StepperType.RungeKuttaDopri5,
55
55
  5.0,
56
- 1.0e-15,
57
- 1.0e-15,
56
+ 1.0e-12,
57
+ 1.0e-12,
58
58
  )
59
59
 
60
60
 
@@ -133,7 +133,7 @@ class TestNumericalSolver:
133
133
  assert 5e-9 >= abs(state_vector[0] - math.sin(integration_duration))
134
134
  assert 5e-9 >= abs(state_vector[1] - math.cos(integration_duration))
135
135
 
136
- integration_durations = np.arange(100.0, 1000.0, 50.0)
136
+ integration_durations = np.arange(100.0, 200.0, 50.0)
137
137
  solutions = numerical_solver.integrate_duration(
138
138
  initial_state_vec, integration_durations, oscillator
139
139
  )
@@ -157,7 +157,7 @@ class TestNumericalSolver:
157
157
  assert 5e-9 >= abs(state_vector[0] - math.sin(end_time))
158
158
  assert 5e-9 >= abs(state_vector[1] - math.cos(end_time))
159
159
 
160
- end_times = np.arange(600.0, 1000.0, 50.0)
160
+ end_times = np.arange(600.0, 700.0, 50.0)
161
161
  solutions = numerical_solver.integrate_time(
162
162
  initial_state_vec, start_time, end_times, oscillator
163
163
  )