open-space-toolkit-mathematics 4.3.2__py311-none-manylinux2014_aarch64.whl → 4.4.1__py311-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.
- {open_space_toolkit_mathematics-4.3.2.dist-info → open_space_toolkit_mathematics-4.4.1.dist-info}/METADATA +3 -3
- {open_space_toolkit_mathematics-4.3.2.dist-info → open_space_toolkit_mathematics-4.4.1.dist-info}/RECORD +25 -13
- {open_space_toolkit_mathematics-4.3.2.dist-info → open_space_toolkit_mathematics-4.4.1.dist-info}/WHEEL +1 -1
- ostk/mathematics/OpenSpaceToolkitMathematicsPy.cpython-311-aarch64-linux-gnu.so +0 -0
- ostk/mathematics/__init__.pyi +11 -0
- ostk/mathematics/curve_fitting/__init__.pyi +65 -0
- ostk/mathematics/curve_fitting/interpolator.pyi +46 -0
- ostk/mathematics/geometry/__init__.pyi +178 -0
- ostk/mathematics/geometry/d2/__init__.pyi +315 -0
- ostk/mathematics/geometry/d2/object.pyi +405 -0
- ostk/mathematics/geometry/d3/__init__.pyi +351 -0
- ostk/mathematics/geometry/d3/object.pyi +837 -0
- ostk/mathematics/geometry/d3/transformation/__init__.pyi +3 -0
- ostk/mathematics/geometry/d3/transformation/rotation.pyi +421 -0
- ostk/mathematics/libopen-space-toolkit-mathematics.so.4 +0 -0
- ostk/mathematics/object.pyi +123 -0
- ostk/mathematics/solver.pyi +147 -0
- ostk/mathematics/test/geometry/d2/conftest.py +6 -9
- ostk/mathematics/test/geometry/d2/object/test_composite.py +4 -7
- ostk/mathematics/test/geometry/d2/object/test_multipolygon.py +3 -10
- ostk/mathematics/test/geometry/d2/object/test_point_set.py +3 -6
- ostk/mathematics/test/geometry/d3/object/test_point_set.py +5 -8
- ostk/mathematics/test/solver/test_numerical_solver.py +2 -2
- {open_space_toolkit_mathematics-4.3.2.dist-info → open_space_toolkit_mathematics-4.4.1.dist-info}/top_level.txt +0 -0
- {open_space_toolkit_mathematics-4.3.2.dist-info → open_space_toolkit_mathematics-4.4.1.dist-info}/zip-safe +0 -0
|
@@ -4,15 +4,12 @@ import pytest
|
|
|
4
4
|
|
|
5
5
|
import numpy as np
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Segment = mathematics.geometry.d2.object.Segment
|
|
14
|
-
Polygon = mathematics.geometry.d2.object.Polygon
|
|
15
|
-
Composite = mathematics.geometry.d2.object.Composite
|
|
7
|
+
from ostk.mathematics.geometry.d2.object import Point
|
|
8
|
+
from ostk.mathematics.geometry.d2.object import PointSet
|
|
9
|
+
from ostk.mathematics.geometry.d2.object import Line
|
|
10
|
+
from ostk.mathematics.geometry.d2.object import Segment
|
|
11
|
+
from ostk.mathematics.geometry.d2.object import Polygon
|
|
12
|
+
from ostk.mathematics.geometry.d2.object import Composite
|
|
16
13
|
|
|
17
14
|
|
|
18
15
|
@pytest.fixture
|
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import pytest
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Point = mathematics.geometry.d2.object.Point
|
|
10
|
-
Polygon = mathematics.geometry.d2.object.Polygon
|
|
11
|
-
Composite = mathematics.geometry.d2.object.Composite
|
|
5
|
+
from ostk.mathematics.geometry.d2 import Object
|
|
6
|
+
from ostk.mathematics.geometry.d2.object import Point
|
|
7
|
+
from ostk.mathematics.geometry.d2.object import Polygon
|
|
8
|
+
from ostk.mathematics.geometry.d2.object import Composite
|
|
12
9
|
|
|
13
10
|
|
|
14
11
|
class TestComposite:
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
# Apache License 2.0
|
|
2
2
|
|
|
3
|
-
import pytest
|
|
4
|
-
|
|
5
3
|
import numpy as np
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
from ostk.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Object = mathematics.geometry.d2.Object
|
|
13
|
-
Polygon = mathematics.geometry.d2.object.Polygon
|
|
14
|
-
MultiPolygon = mathematics.geometry.d2.object.MultiPolygon
|
|
5
|
+
from ostk.mathematics.geometry.d2 import Object
|
|
6
|
+
from ostk.mathematics.geometry.d2.object import Polygon
|
|
7
|
+
from ostk.mathematics.geometry.d2.object import MultiPolygon
|
|
15
8
|
|
|
16
9
|
|
|
17
10
|
class TestMultipolygon:
|
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from collections.abc import Iterator, Iterable
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object = mathematics.geometry.d2.Object
|
|
9
|
-
Point = mathematics.geometry.d2.object.Point
|
|
10
|
-
PointSet = mathematics.geometry.d2.object.PointSet
|
|
5
|
+
from ostk.mathematics.geometry.d2 import Object
|
|
6
|
+
from ostk.mathematics.geometry.d2.object import Point
|
|
7
|
+
from ostk.mathematics.geometry.d2.object import PointSet
|
|
11
8
|
|
|
12
9
|
|
|
13
10
|
class TestPointSet:
|
|
@@ -4,13 +4,10 @@ from collections.abc import Iterator, Iterable
|
|
|
4
4
|
|
|
5
5
|
import pytest
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Point = mathematics.geometry.d3.object.Point
|
|
12
|
-
PointSet = mathematics.geometry.d3.object.PointSet
|
|
13
|
-
Transformation = mathematics.geometry.d3.Transformation
|
|
7
|
+
from ostk.mathematics.geometry.d3 import Object
|
|
8
|
+
from ostk.mathematics.geometry.d3 import Transformation
|
|
9
|
+
from ostk.mathematics.geometry.d3.object import Point
|
|
10
|
+
from ostk.mathematics.geometry.d3.object import PointSet
|
|
14
11
|
|
|
15
12
|
|
|
16
13
|
@pytest.fixture
|
|
@@ -52,7 +49,7 @@ class TestPointSet:
|
|
|
52
49
|
assert point_set.is_defined()
|
|
53
50
|
|
|
54
51
|
def test_empty_success(self):
|
|
55
|
-
point_set:
|
|
52
|
+
point_set: PointSet = PointSet.empty()
|
|
56
53
|
|
|
57
54
|
assert point_set is not None
|
|
58
55
|
assert isinstance(point_set, PointSet)
|
|
@@ -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, 200.0, 50.0)
|
|
136
|
+
integration_durations = np.arange(100.0, 200.0, 50.0).astype(float)
|
|
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, 700.0, 50.0)
|
|
160
|
+
end_times = np.arange(600.0, 700.0, 50.0).astype(float)
|
|
161
161
|
solutions = numerical_solver.integrate_time(
|
|
162
162
|
initial_state_vec, start_time, end_times, oscillator
|
|
163
163
|
)
|
|
File without changes
|
|
File without changes
|