open-space-toolkit-mathematics 3.1.3__py38-none-manylinux2014_x86_64.whl → 4.0.1__py38-none-manylinux2014_x86_64.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: 3.1.3
3
+ Version: 4.0.1
4
4
  Summary: Geometry, curve fitting, optimization.
5
5
  Author: Open Space Collective
6
6
  Author-email: contact@open-space-collective.org
@@ -12,7 +12,7 @@ Classifier: License :: OSI Approved :: Apache Software License
12
12
  Classifier: Operating System :: POSIX :: Linux
13
13
  Description-Content-Type: text/markdown
14
14
  Requires-Dist: numpy ~=2.0
15
- Requires-Dist: open-space-toolkit-core ~=3.0
15
+ Requires-Dist: open-space-toolkit-core ~=4.0
16
16
 
17
17
  # Open Space Toolkit ▸ Mathematics
18
18
 
@@ -1,7 +1,7 @@
1
1
  ostk/__init__.py,sha256=epnVn2PwdQkUDZ1msqBRO5nEZIOUBIq-IfK3IlNPijE,21
2
- ostk/mathematics/OpenSpaceToolkitMathematicsPy.cpython-38-x86_64-linux-gnu.so,sha256=doyibZgDdicSDbL-eWpAGDiNOD07WjWB2VU_wMskBmI,1615672
2
+ ostk/mathematics/OpenSpaceToolkitMathematicsPy.cpython-38-x86_64-linux-gnu.so,sha256=yOeaIB6dd-VE2ZZQ3PosmjApgZVu6-6H33pnthugSpU,1701632
3
3
  ostk/mathematics/__init__.py,sha256=U81I6jh2hIPyuT4dtZjNcLi-CQ8yXIvtFn32tVK1YCY,92
4
- ostk/mathematics/libopen-space-toolkit-mathematics.so.3,sha256=zI3SQ3-Fg-AqeGfeGLikB18d6tfM8UxcQsngC7G7yOo,114776568
4
+ ostk/mathematics/libopen-space-toolkit-mathematics.so.4,sha256=gND_eflvVTAgKY2fJebKPJNARbMH3nVmlTsVLBHeS08,92151784
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
@@ -43,14 +43,14 @@ ostk/mathematics/test/geometry/d3/transformation/__init__.py,sha256=epnVn2PwdQkU
43
43
  ostk/mathematics/test/geometry/d3/transformation/rotation/__init__.py,sha256=epnVn2PwdQkUDZ1msqBRO5nEZIOUBIq-IfK3IlNPijE,21
44
44
  ostk/mathematics/test/geometry/d3/transformation/rotation/test_euler_angle.py,sha256=eTIxAqUfCQj6eZfoQgNu-1xFg0O4sbKk4n8XHQwXD2E,4393
45
45
  ostk/mathematics/test/geometry/d3/transformation/rotation/test_quaternion.py,sha256=CFau3zwBUWj-KELNdjhCd88teUh8U9f0wpNDDeObr60,6867
46
- ostk/mathematics/test/geometry/d3/transformation/rotation/test_rotation_matrix.py,sha256=Vwk-yiyxOav3glx1m-xAfAp-DOpDwT6Yl9xpjmRKPvI,819
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-3.1.3.dist-info/METADATA,sha256=Tnin1Ip83I27g9sPFXUhXj7_BPWXQSQWqfqg-RgHdgU,1801
53
- open_space_toolkit_mathematics-3.1.3.dist-info/WHEEL,sha256=UAGnXGE6TUJ5_odNW3WnEDi604O0AtVRrnlTu7KBuB4,110
54
- open_space_toolkit_mathematics-3.1.3.dist-info/top_level.txt,sha256=zOR18699uDYnafgarhL8WU_LmTZY_5NVqutv-flp_x4,5
55
- open_space_toolkit_mathematics-3.1.3.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
56
- open_space_toolkit_mathematics-3.1.3.dist-info/RECORD,,
51
+ ostk/mathematics/test/solver/test_numerical_solver.py,sha256=5Z7uXlvfQ_pjrSAOd7ff-ky5pjRZk3-R0F565FfCUrU,5672
52
+ open_space_toolkit_mathematics-4.0.1.dist-info/METADATA,sha256=CkN4GIzqDb6WBWuVKv2kznpX3IufcqAD3UCQooTnVFY,1801
53
+ open_space_toolkit_mathematics-4.0.1.dist-info/WHEEL,sha256=q7bGkHj5-uO8ZVDbDA9JExe7sSDQsY_6S4LJ3oOcV_Y,109
54
+ open_space_toolkit_mathematics-4.0.1.dist-info/top_level.txt,sha256=zOR18699uDYnafgarhL8WU_LmTZY_5NVqutv-flp_x4,5
55
+ open_space_toolkit_mathematics-4.0.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
56
+ open_space_toolkit_mathematics-4.0.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (71.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py38-none-manylinux2014_x86_64
5
5
 
@@ -21,3 +21,9 @@ class TestRotationMatrix:
21
21
 
22
22
  def test_euler_angle_success(self, rotation_matrix: RotationMatrix):
23
23
  assert RotationMatrix.euler_angle(EulerAngle.unit()) == rotation_matrix
24
+
25
+ def test_getters(self, rotation_matrix: RotationMatrix):
26
+
27
+ assert rotation_matrix.get_column_at(0) is not None
28
+ assert rotation_matrix.get_row_at(1) is not None
29
+ assert rotation_matrix.get_matrix() is not None
@@ -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
  )