open-space-toolkit-physics 11.2.1__py313-none-manylinux2014_x86_64.whl → 12.0.0__py313-none-manylinux2014_x86_64.whl
Sign up to get free protection for your applications and to get access to all the features.
- {open_space_toolkit_physics-11.2.1.dist-info → open_space_toolkit_physics-12.0.0.dist-info}/METADATA +3 -3
- {open_space_toolkit_physics-11.2.1.dist-info → open_space_toolkit_physics-12.0.0.dist-info}/RECORD +35 -13
- {open_space_toolkit_physics-11.2.1.dist-info → open_space_toolkit_physics-12.0.0.dist-info}/WHEEL +1 -1
- ostk/physics/OpenSpaceToolkitPhysicsPy.cpython-313-x86_64-linux-gnu.so +0 -0
- ostk/physics/__init__.pyi +488 -0
- ostk/physics/coordinate/__init__.pyi +1002 -0
- ostk/physics/coordinate/frame/__init__.pyi +30 -0
- ostk/physics/coordinate/frame/provider/__init__.pyi +77 -0
- ostk/physics/coordinate/frame/provider/iau.pyi +64 -0
- ostk/physics/coordinate/frame/provider/iers.pyi +584 -0
- ostk/physics/coordinate/spherical.pyi +421 -0
- ostk/physics/data/__init__.pyi +459 -0
- ostk/physics/data/provider.pyi +21 -0
- ostk/physics/environment/__init__.pyi +108 -0
- ostk/physics/environment/atmospheric/__init__.pyi +181 -0
- ostk/physics/environment/atmospheric/earth.pyi +552 -0
- ostk/physics/environment/gravitational/__init__.pyi +559 -0
- ostk/physics/environment/gravitational/earth.pyi +56 -0
- ostk/physics/environment/magnetic/__init__.pyi +171 -0
- ostk/physics/environment/magnetic/earth.pyi +56 -0
- ostk/physics/environment/object/__init__.pyi +430 -0
- ostk/physics/environment/object/celestial/__init__.pyi +248 -0
- ostk/physics/environment/object/celestial/moon.pyi +2 -0
- ostk/physics/environment/object/celestial/sun.pyi +2 -0
- ostk/physics/{libopen-space-toolkit-physics.so.11 → libopen-space-toolkit-physics.so.12} +0 -0
- ostk/physics/test/coordinate/frame/provider/iers/conftest.py +2 -5
- ostk/physics/test/coordinate/frame/provider/iers/test_bulletin_a.py +1 -4
- ostk/physics/test/coordinate/frame/provider/iers/test_finals_2000a.py +1 -4
- ostk/physics/test/coordinate/spherical/test_lla.py +24 -0
- ostk/physics/test/coordinate/test_position.py +129 -134
- ostk/physics/test/environment/atmospheric/earth/test_cssi_space_weather.py +11 -8
- ostk/physics/time.pyi +1744 -0
- ostk/physics/unit.pyi +1590 -0
- {open_space_toolkit_physics-11.2.1.dist-info → open_space_toolkit_physics-12.0.0.dist-info}/top_level.txt +0 -0
- {open_space_toolkit_physics-11.2.1.dist-info → open_space_toolkit_physics-12.0.0.dist-info}/zip-safe +0 -0
ostk/physics/unit.pyi
ADDED
@@ -0,0 +1,1590 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
import numpy
|
3
|
+
import ostk.core.type
|
4
|
+
import ostk.mathematics.geometry
|
5
|
+
import ostk.mathematics.object
|
6
|
+
import typing
|
7
|
+
__all__ = ['Angle', 'Derived', 'ElectricCurrent', 'Interval', 'Length', 'Mass', 'Time']
|
8
|
+
class Angle:
|
9
|
+
"""
|
10
|
+
|
11
|
+
Angle.
|
12
|
+
|
13
|
+
:reference: https://en.wikipedia.org/wiki/Angle
|
14
|
+
|
15
|
+
"""
|
16
|
+
class Unit:
|
17
|
+
"""
|
18
|
+
Members:
|
19
|
+
|
20
|
+
Undefined :
|
21
|
+
Undefined unit.
|
22
|
+
|
23
|
+
|
24
|
+
Radian :
|
25
|
+
Radian unit.
|
26
|
+
|
27
|
+
|
28
|
+
Degree :
|
29
|
+
Degree unit.
|
30
|
+
|
31
|
+
|
32
|
+
Arcminute :
|
33
|
+
Arcminute unit.
|
34
|
+
|
35
|
+
|
36
|
+
Arcsecond :
|
37
|
+
Arcsecond unit.
|
38
|
+
|
39
|
+
|
40
|
+
Revolution :
|
41
|
+
Revolution unit.
|
42
|
+
|
43
|
+
"""
|
44
|
+
Arcminute: typing.ClassVar[Angle.Unit] # value = <Unit.Arcminute: 3>
|
45
|
+
Arcsecond: typing.ClassVar[Angle.Unit] # value = <Unit.Arcsecond: 4>
|
46
|
+
Degree: typing.ClassVar[Angle.Unit] # value = <Unit.Degree: 2>
|
47
|
+
Radian: typing.ClassVar[Angle.Unit] # value = <Unit.Radian: 1>
|
48
|
+
Revolution: typing.ClassVar[Angle.Unit] # value = <Unit.Revolution: 5>
|
49
|
+
Undefined: typing.ClassVar[Angle.Unit] # value = <Unit.Undefined: 0>
|
50
|
+
__members__: typing.ClassVar[dict[str, Angle.Unit]] # value = {'Undefined': <Unit.Undefined: 0>, 'Radian': <Unit.Radian: 1>, 'Degree': <Unit.Degree: 2>, 'Arcminute': <Unit.Arcminute: 3>, 'Arcsecond': <Unit.Arcsecond: 4>, 'Revolution': <Unit.Revolution: 5>}
|
51
|
+
@staticmethod
|
52
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
53
|
+
...
|
54
|
+
def __eq__(self, other: typing.Any) -> bool:
|
55
|
+
...
|
56
|
+
def __getstate__(self) -> int:
|
57
|
+
...
|
58
|
+
def __hash__(self) -> int:
|
59
|
+
...
|
60
|
+
def __index__(self) -> int:
|
61
|
+
...
|
62
|
+
def __init__(self, value: int) -> None:
|
63
|
+
...
|
64
|
+
def __int__(self) -> int:
|
65
|
+
...
|
66
|
+
def __ne__(self, other: typing.Any) -> bool:
|
67
|
+
...
|
68
|
+
def __repr__(self) -> str:
|
69
|
+
...
|
70
|
+
def __setstate__(self, state: int) -> None:
|
71
|
+
...
|
72
|
+
def __str__(self) -> str:
|
73
|
+
...
|
74
|
+
@property
|
75
|
+
def name(self) -> str:
|
76
|
+
...
|
77
|
+
@property
|
78
|
+
def value(self) -> int:
|
79
|
+
...
|
80
|
+
__hash__: typing.ClassVar[None] = None
|
81
|
+
@staticmethod
|
82
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
83
|
+
...
|
84
|
+
@staticmethod
|
85
|
+
def arcminutes(value: ostk.core.type.Real) -> Angle:
|
86
|
+
"""
|
87
|
+
Create an angle in arcminutes.
|
88
|
+
|
89
|
+
Args:
|
90
|
+
value (Real): A value.
|
91
|
+
|
92
|
+
Returns:
|
93
|
+
Angle: An angle in arcminutes.
|
94
|
+
"""
|
95
|
+
@staticmethod
|
96
|
+
def arcseconds(value: ostk.core.type.Real) -> Angle:
|
97
|
+
"""
|
98
|
+
Create an angle in arcseconds.
|
99
|
+
|
100
|
+
Args:
|
101
|
+
value (Real): A value.
|
102
|
+
|
103
|
+
Returns:
|
104
|
+
Angle: An angle in arcseconds.
|
105
|
+
"""
|
106
|
+
@staticmethod
|
107
|
+
@typing.overload
|
108
|
+
def between(first_vector: numpy.ndarray[numpy.float64[2, 1]], second_vector: numpy.ndarray[numpy.float64[2, 1]]) -> Angle:
|
109
|
+
"""
|
110
|
+
Create an angle between two vectors.
|
111
|
+
|
112
|
+
Args:
|
113
|
+
first_vector (Vector2d): A first vector.
|
114
|
+
second_vector (Vector2d): A second vector.
|
115
|
+
|
116
|
+
Returns:
|
117
|
+
Angle: An angle between two vectors.
|
118
|
+
"""
|
119
|
+
@staticmethod
|
120
|
+
@typing.overload
|
121
|
+
def between(first_vector: numpy.ndarray[numpy.float64[3, 1]], second_vector: numpy.ndarray[numpy.float64[3, 1]]) -> Angle:
|
122
|
+
"""
|
123
|
+
Create an angle between two vectors.
|
124
|
+
|
125
|
+
Args:
|
126
|
+
first_vector (np.ndarray): A first vector.
|
127
|
+
second_vector (np.ndarray): A second vector.
|
128
|
+
|
129
|
+
Returns:
|
130
|
+
Angle: An angle between two vectors.
|
131
|
+
"""
|
132
|
+
@staticmethod
|
133
|
+
def degrees(value: ostk.core.type.Real) -> Angle:
|
134
|
+
"""
|
135
|
+
Create an angle in degrees.
|
136
|
+
|
137
|
+
Args:
|
138
|
+
value (Real): A value.
|
139
|
+
|
140
|
+
Returns:
|
141
|
+
Angle: An angle in degrees.
|
142
|
+
"""
|
143
|
+
@staticmethod
|
144
|
+
def half_pi() -> Angle:
|
145
|
+
"""
|
146
|
+
Create a half pi angle.
|
147
|
+
|
148
|
+
Returns:
|
149
|
+
Angle: A half pi angle.
|
150
|
+
"""
|
151
|
+
@staticmethod
|
152
|
+
def parse(string: ostk.core.type.String) -> Angle:
|
153
|
+
"""
|
154
|
+
Parse an angle from a string.
|
155
|
+
|
156
|
+
Args:
|
157
|
+
string (str): A string.
|
158
|
+
|
159
|
+
Returns:
|
160
|
+
Angle: An angle.
|
161
|
+
"""
|
162
|
+
@staticmethod
|
163
|
+
def pi() -> Angle:
|
164
|
+
"""
|
165
|
+
Create a pi angle.
|
166
|
+
|
167
|
+
Returns:
|
168
|
+
Angle: A pi angle.
|
169
|
+
"""
|
170
|
+
@staticmethod
|
171
|
+
def radians(value: ostk.core.type.Real) -> Angle:
|
172
|
+
"""
|
173
|
+
Create an angle in radians.
|
174
|
+
|
175
|
+
Args:
|
176
|
+
value (Real): A value.
|
177
|
+
|
178
|
+
Returns:
|
179
|
+
Angle: An angle in radians.
|
180
|
+
"""
|
181
|
+
@staticmethod
|
182
|
+
def revolutions(value: ostk.core.type.Real) -> Angle:
|
183
|
+
"""
|
184
|
+
Create an angle in revolutions.
|
185
|
+
|
186
|
+
Args:
|
187
|
+
value (Real): A value.
|
188
|
+
|
189
|
+
Returns:
|
190
|
+
Angle: An angle in revolutions.
|
191
|
+
"""
|
192
|
+
@staticmethod
|
193
|
+
def string_from_unit(unit: typing.Any) -> ostk.core.type.String:
|
194
|
+
"""
|
195
|
+
Get the string representation of an angle unit.
|
196
|
+
|
197
|
+
Args:
|
198
|
+
unit (Unit): An angle unit.
|
199
|
+
|
200
|
+
Returns:
|
201
|
+
str: The string representation of an angle unit.
|
202
|
+
"""
|
203
|
+
@staticmethod
|
204
|
+
def symbol_from_unit(unit: typing.Any) -> ostk.core.type.String:
|
205
|
+
"""
|
206
|
+
Get the symbol representation of an angle unit.
|
207
|
+
|
208
|
+
Args:
|
209
|
+
unit (Unit): An angle unit.
|
210
|
+
|
211
|
+
Returns:
|
212
|
+
str: The symbol representation of an angle unit.
|
213
|
+
"""
|
214
|
+
@staticmethod
|
215
|
+
def two_pi() -> Angle:
|
216
|
+
"""
|
217
|
+
Create a two pi angle.
|
218
|
+
|
219
|
+
Returns:
|
220
|
+
Angle: A two pi angle.
|
221
|
+
"""
|
222
|
+
@staticmethod
|
223
|
+
def undefined() -> Angle:
|
224
|
+
"""
|
225
|
+
Create an undefined angle.
|
226
|
+
|
227
|
+
Returns:
|
228
|
+
Angle: An undefined angle.
|
229
|
+
"""
|
230
|
+
@staticmethod
|
231
|
+
def zero() -> Angle:
|
232
|
+
"""
|
233
|
+
Create a zero angle.
|
234
|
+
|
235
|
+
Returns:
|
236
|
+
Angle: A zero angle.
|
237
|
+
"""
|
238
|
+
def __add__(self, arg0: Angle) -> Angle:
|
239
|
+
...
|
240
|
+
def __eq__(self, arg0: Angle) -> bool:
|
241
|
+
...
|
242
|
+
def __iadd__(self, arg0: Angle) -> Angle:
|
243
|
+
...
|
244
|
+
def __imul__(self, arg0: ostk.core.type.Real) -> Angle:
|
245
|
+
...
|
246
|
+
@typing.overload
|
247
|
+
def __init__(self, value: ostk.core.type.Real, unit: typing.Any) -> None:
|
248
|
+
"""
|
249
|
+
Constructor.
|
250
|
+
|
251
|
+
Args:
|
252
|
+
value (Real): A value.
|
253
|
+
unit (Unit): An angle unit.
|
254
|
+
"""
|
255
|
+
@typing.overload
|
256
|
+
def __init__(self, angle: ostk.mathematics.geometry.Angle) -> None:
|
257
|
+
"""
|
258
|
+
Constructor.
|
259
|
+
|
260
|
+
Args:
|
261
|
+
angle (Angle): An angle.
|
262
|
+
"""
|
263
|
+
def __isub__(self, arg0: Angle) -> Angle:
|
264
|
+
...
|
265
|
+
def __itruediv__(self, arg0: ostk.core.type.Real) -> Angle:
|
266
|
+
...
|
267
|
+
def __mul__(self, arg0: ostk.core.type.Real) -> Angle:
|
268
|
+
...
|
269
|
+
def __ne__(self, arg0: Angle) -> bool:
|
270
|
+
...
|
271
|
+
def __neg__(self) -> Angle:
|
272
|
+
...
|
273
|
+
def __pos__(self) -> Angle:
|
274
|
+
...
|
275
|
+
def __repr__(self) -> str:
|
276
|
+
...
|
277
|
+
def __str__(self) -> str:
|
278
|
+
...
|
279
|
+
def __sub__(self, arg0: Angle) -> Angle:
|
280
|
+
...
|
281
|
+
def __truediv__(self, arg0: ostk.core.type.Real) -> Angle:
|
282
|
+
...
|
283
|
+
def get_unit(self) -> ...:
|
284
|
+
"""
|
285
|
+
Get the unit of the angle.
|
286
|
+
|
287
|
+
Returns:
|
288
|
+
Unit: The unit of the angle.
|
289
|
+
"""
|
290
|
+
@typing.overload
|
291
|
+
def in_arcminutes(self) -> ostk.core.type.Real:
|
292
|
+
"""
|
293
|
+
Get the angle in arcminutes.
|
294
|
+
|
295
|
+
Returns:
|
296
|
+
float: The angle in arcminutes.
|
297
|
+
"""
|
298
|
+
@typing.overload
|
299
|
+
def in_arcminutes(self, lower_bound: ostk.core.type.Real, upper_bound: ostk.core.type.Real) -> ostk.core.type.Real:
|
300
|
+
"""
|
301
|
+
Get the angle in arcminutes.
|
302
|
+
|
303
|
+
Args:
|
304
|
+
lower_bound (Real): A lower bound.
|
305
|
+
upper_bound (Real): An upper bound.
|
306
|
+
|
307
|
+
Returns:
|
308
|
+
float: The angle in arcminutes.
|
309
|
+
"""
|
310
|
+
@typing.overload
|
311
|
+
def in_arcseconds(self) -> ostk.core.type.Real:
|
312
|
+
"""
|
313
|
+
Get the angle in arcseconds.
|
314
|
+
|
315
|
+
Returns:
|
316
|
+
float: The angle in arcseconds.
|
317
|
+
"""
|
318
|
+
@typing.overload
|
319
|
+
def in_arcseconds(self, lower_bound: ostk.core.type.Real, upper_bound: ostk.core.type.Real) -> ostk.core.type.Real:
|
320
|
+
"""
|
321
|
+
Get the angle in arcseconds.
|
322
|
+
|
323
|
+
Args:
|
324
|
+
lower_bound (Real): A lower bound.
|
325
|
+
upper_bound (Real): An upper bound.
|
326
|
+
|
327
|
+
Returns:
|
328
|
+
float: The angle in arcseconds.
|
329
|
+
"""
|
330
|
+
@typing.overload
|
331
|
+
def in_degrees(self) -> ostk.core.type.Real:
|
332
|
+
"""
|
333
|
+
Get the angle in degrees.
|
334
|
+
|
335
|
+
Returns:
|
336
|
+
float: The angle in degrees.
|
337
|
+
"""
|
338
|
+
@typing.overload
|
339
|
+
def in_degrees(self, lower_bound: ostk.core.type.Real, upper_bound: ostk.core.type.Real) -> ostk.core.type.Real:
|
340
|
+
"""
|
341
|
+
Get the angle in degrees.
|
342
|
+
|
343
|
+
Args:
|
344
|
+
lower_bound (Real): A lower bound.
|
345
|
+
upper_bound (Real): An upper bound.
|
346
|
+
|
347
|
+
Returns:
|
348
|
+
float: The angle in degrees.
|
349
|
+
"""
|
350
|
+
@typing.overload
|
351
|
+
def in_radians(self) -> ostk.core.type.Real:
|
352
|
+
"""
|
353
|
+
Get the angle in radians.
|
354
|
+
|
355
|
+
Returns:
|
356
|
+
float: The angle in radians.
|
357
|
+
"""
|
358
|
+
@typing.overload
|
359
|
+
def in_radians(self, lower_bound: ostk.core.type.Real, upper_bound: ostk.core.type.Real) -> ostk.core.type.Real:
|
360
|
+
"""
|
361
|
+
Get the angle in radians.
|
362
|
+
|
363
|
+
Args:
|
364
|
+
lower_bound (Real): A lower bound.
|
365
|
+
upper_bound (Real): An upper bound.
|
366
|
+
|
367
|
+
Returns:
|
368
|
+
float: The angle in radians.
|
369
|
+
"""
|
370
|
+
def in_revolutions(self) -> ostk.core.type.Real:
|
371
|
+
"""
|
372
|
+
Get the angle in revolutions.
|
373
|
+
|
374
|
+
Returns:
|
375
|
+
float: The angle in revolutions.
|
376
|
+
"""
|
377
|
+
def in_unit(self, unit: typing.Any) -> ostk.core.type.Real:
|
378
|
+
"""
|
379
|
+
Get the angle in the specified unit.
|
380
|
+
|
381
|
+
Args:
|
382
|
+
unit (Unit): An angle unit.
|
383
|
+
|
384
|
+
Returns:
|
385
|
+
float: The angle in the specified unit.
|
386
|
+
"""
|
387
|
+
def is_defined(self) -> bool:
|
388
|
+
"""
|
389
|
+
Check if the angle is defined.
|
390
|
+
|
391
|
+
Returns:
|
392
|
+
bool: True if defined.
|
393
|
+
"""
|
394
|
+
def is_zero(self) -> bool:
|
395
|
+
"""
|
396
|
+
Check if the angle is zero.
|
397
|
+
|
398
|
+
Returns:
|
399
|
+
bool: True if zero.
|
400
|
+
"""
|
401
|
+
def to_string(self, precision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
402
|
+
"""
|
403
|
+
Get the string representation of the angle.
|
404
|
+
|
405
|
+
Args:
|
406
|
+
precision (int): A precision.
|
407
|
+
|
408
|
+
Returns:
|
409
|
+
str: The string representation of the angle.
|
410
|
+
"""
|
411
|
+
class Derived:
|
412
|
+
"""
|
413
|
+
|
414
|
+
Derived unit.
|
415
|
+
|
416
|
+
:reference: https://en.wikipedia.org/wiki/SI_derived_unit
|
417
|
+
|
418
|
+
"""
|
419
|
+
class Order:
|
420
|
+
"""
|
421
|
+
|
422
|
+
SI unit order.
|
423
|
+
|
424
|
+
|
425
|
+
"""
|
426
|
+
__hash__: typing.ClassVar[None] = None
|
427
|
+
@staticmethod
|
428
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
429
|
+
...
|
430
|
+
@staticmethod
|
431
|
+
def one() -> Derived.Order:
|
432
|
+
"""
|
433
|
+
Create a unity order.
|
434
|
+
|
435
|
+
Returns:
|
436
|
+
Order: Order.
|
437
|
+
"""
|
438
|
+
@staticmethod
|
439
|
+
def two() -> Derived.Order:
|
440
|
+
"""
|
441
|
+
Create a two order.
|
442
|
+
|
443
|
+
Returns:
|
444
|
+
Order: Order.
|
445
|
+
"""
|
446
|
+
@staticmethod
|
447
|
+
def zero() -> Derived.Order:
|
448
|
+
"""
|
449
|
+
Create a zero order.
|
450
|
+
|
451
|
+
Returns:
|
452
|
+
Order: Order.
|
453
|
+
"""
|
454
|
+
def __eq__(self, arg0: Derived.Order) -> bool:
|
455
|
+
...
|
456
|
+
@typing.overload
|
457
|
+
def __init__(self, arg0: int) -> None:
|
458
|
+
"""
|
459
|
+
Constructor.
|
460
|
+
|
461
|
+
Args:
|
462
|
+
aValue (int): Value.
|
463
|
+
"""
|
464
|
+
@typing.overload
|
465
|
+
def __init__(self, arg0: int, arg1: int) -> None:
|
466
|
+
"""
|
467
|
+
Constructor.
|
468
|
+
|
469
|
+
Args:
|
470
|
+
aNumerator (int): Numerator.
|
471
|
+
aDenominator (int): Denominator.
|
472
|
+
"""
|
473
|
+
def __ne__(self, arg0: Derived.Order) -> bool:
|
474
|
+
...
|
475
|
+
def get_denominator(self) -> int:
|
476
|
+
"""
|
477
|
+
Get denominator.
|
478
|
+
|
479
|
+
Returns:
|
480
|
+
int: Denominator.
|
481
|
+
"""
|
482
|
+
def get_numerator(self) -> int:
|
483
|
+
"""
|
484
|
+
Get numerator.
|
485
|
+
|
486
|
+
Returns:
|
487
|
+
int: Numerator.
|
488
|
+
"""
|
489
|
+
def get_value(self) -> ostk.core.type.Real:
|
490
|
+
"""
|
491
|
+
Get value.
|
492
|
+
|
493
|
+
Returns:
|
494
|
+
float: Value.
|
495
|
+
"""
|
496
|
+
def is_unity(self) -> bool:
|
497
|
+
"""
|
498
|
+
Check if the order is unity.
|
499
|
+
|
500
|
+
Returns:
|
501
|
+
bool: True if unity.
|
502
|
+
"""
|
503
|
+
def is_zero(self) -> bool:
|
504
|
+
"""
|
505
|
+
Check if the order is zero.
|
506
|
+
|
507
|
+
Returns:
|
508
|
+
bool: True if zero.
|
509
|
+
"""
|
510
|
+
def to_string(self) -> ostk.core.type.String:
|
511
|
+
"""
|
512
|
+
Convert to string.
|
513
|
+
|
514
|
+
Returns:
|
515
|
+
str: String representation.
|
516
|
+
"""
|
517
|
+
class Unit:
|
518
|
+
"""
|
519
|
+
|
520
|
+
Unit
|
521
|
+
|
522
|
+
"""
|
523
|
+
__hash__: typing.ClassVar[None] = None
|
524
|
+
@staticmethod
|
525
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
526
|
+
...
|
527
|
+
@staticmethod
|
528
|
+
def acceleration(length: Length.Unit, time: Time.Unit) -> Derived.Unit:
|
529
|
+
"""
|
530
|
+
Create an acceleration unit.
|
531
|
+
|
532
|
+
Args:
|
533
|
+
length (Length::Unit): Length unit.
|
534
|
+
time (Time::Unit): Time unit.
|
535
|
+
|
536
|
+
Returns:
|
537
|
+
Unit: Unit.
|
538
|
+
"""
|
539
|
+
@staticmethod
|
540
|
+
def angular_velocity(angle: typing.Any, time: Time.Unit) -> Derived.Unit:
|
541
|
+
"""
|
542
|
+
Create an angular velocity unit.
|
543
|
+
|
544
|
+
Args:
|
545
|
+
angle (Angle::Unit): Angle unit.
|
546
|
+
time (Time::Unit): Time unit.
|
547
|
+
|
548
|
+
Returns:
|
549
|
+
Unit: Unit.
|
550
|
+
"""
|
551
|
+
@staticmethod
|
552
|
+
def cubic_meter() -> Derived.Unit:
|
553
|
+
"""
|
554
|
+
Create a cubic meter unit.
|
555
|
+
|
556
|
+
Returns:
|
557
|
+
Unit: Unit.
|
558
|
+
"""
|
559
|
+
@staticmethod
|
560
|
+
def force(mass: Mass.Unit, length: Length.Unit, time: Time.Unit) -> Derived.Unit:
|
561
|
+
"""
|
562
|
+
Create a force unit.
|
563
|
+
|
564
|
+
Args:
|
565
|
+
mass (Mass::Unit): Mass unit.
|
566
|
+
length (Length::Unit): Length unit.
|
567
|
+
time (Time::Unit): Time unit.
|
568
|
+
|
569
|
+
Returns:
|
570
|
+
Unit: Unit.
|
571
|
+
"""
|
572
|
+
@staticmethod
|
573
|
+
def gravitational_parameter(length: Length.Unit, time: Time.Unit) -> Derived.Unit:
|
574
|
+
"""
|
575
|
+
Create a gravitational parameter unit.
|
576
|
+
|
577
|
+
Args:
|
578
|
+
length (Length::Unit): Length unit.
|
579
|
+
time (Time::Unit): Time unit.
|
580
|
+
|
581
|
+
Returns:
|
582
|
+
Unit: Unit.
|
583
|
+
"""
|
584
|
+
@staticmethod
|
585
|
+
def hertz() -> Derived.Unit:
|
586
|
+
"""
|
587
|
+
Create a hertz unit.
|
588
|
+
|
589
|
+
Returns:
|
590
|
+
Unit: Unit.
|
591
|
+
"""
|
592
|
+
@staticmethod
|
593
|
+
def kilogram_per_second() -> Derived.Unit:
|
594
|
+
"""
|
595
|
+
Create a kilogram per second unit.
|
596
|
+
|
597
|
+
Returns:
|
598
|
+
Unit: Unit.
|
599
|
+
"""
|
600
|
+
@staticmethod
|
601
|
+
def mass_density(mass: Mass.Unit, length: Length.Unit) -> Derived.Unit:
|
602
|
+
"""
|
603
|
+
Create a mass density unit.
|
604
|
+
|
605
|
+
Args:
|
606
|
+
mass (Mass::Unit): Mass unit.
|
607
|
+
length (Length::Unit): Length unit.
|
608
|
+
|
609
|
+
Returns:
|
610
|
+
Unit: Unit.
|
611
|
+
"""
|
612
|
+
@staticmethod
|
613
|
+
def mass_flow_rate(mass: Mass.Unit, time: Time.Unit) -> Derived.Unit:
|
614
|
+
"""
|
615
|
+
Create a mass flow rate unit.
|
616
|
+
|
617
|
+
Args:
|
618
|
+
mass (Mass::Unit): Mass unit.
|
619
|
+
time (Time::Unit): Time unit.
|
620
|
+
|
621
|
+
Returns:
|
622
|
+
Unit: Unit.
|
623
|
+
"""
|
624
|
+
@staticmethod
|
625
|
+
def meter_cubed_per_second_squared() -> Derived.Unit:
|
626
|
+
"""
|
627
|
+
Create a meter cubed per second squared unit.
|
628
|
+
|
629
|
+
Returns:
|
630
|
+
Unit: Unit.
|
631
|
+
"""
|
632
|
+
@staticmethod
|
633
|
+
def meter_per_second() -> Derived.Unit:
|
634
|
+
"""
|
635
|
+
Create a meter per second unit.
|
636
|
+
|
637
|
+
Returns:
|
638
|
+
Unit: Unit.
|
639
|
+
"""
|
640
|
+
@staticmethod
|
641
|
+
def meter_per_second_squared() -> Derived.Unit:
|
642
|
+
"""
|
643
|
+
Create a meter per second squared unit.
|
644
|
+
|
645
|
+
Returns:
|
646
|
+
Unit: Unit.
|
647
|
+
"""
|
648
|
+
@staticmethod
|
649
|
+
def newton() -> Derived.Unit:
|
650
|
+
"""
|
651
|
+
Create a newton unit.
|
652
|
+
|
653
|
+
Returns:
|
654
|
+
Unit: Unit.
|
655
|
+
"""
|
656
|
+
@staticmethod
|
657
|
+
def radian_per_second() -> Derived.Unit:
|
658
|
+
"""
|
659
|
+
Create a radian per second unit.
|
660
|
+
|
661
|
+
Returns:
|
662
|
+
Unit: Unit.
|
663
|
+
"""
|
664
|
+
@staticmethod
|
665
|
+
def revolution_per_day() -> Derived.Unit:
|
666
|
+
"""
|
667
|
+
Create a revolution per day unit.
|
668
|
+
|
669
|
+
Returns:
|
670
|
+
Unit: Unit.
|
671
|
+
"""
|
672
|
+
@staticmethod
|
673
|
+
def square_meter() -> Derived.Unit:
|
674
|
+
"""
|
675
|
+
Create a square meter unit.
|
676
|
+
|
677
|
+
Returns:
|
678
|
+
Unit: Unit.
|
679
|
+
"""
|
680
|
+
@staticmethod
|
681
|
+
def tesla() -> Derived.Unit:
|
682
|
+
"""
|
683
|
+
Create a tesla unit.
|
684
|
+
|
685
|
+
Returns:
|
686
|
+
Unit: Unit.
|
687
|
+
"""
|
688
|
+
@staticmethod
|
689
|
+
def undefined() -> Derived.Unit:
|
690
|
+
"""
|
691
|
+
Create an undefined unit.
|
692
|
+
|
693
|
+
Returns:
|
694
|
+
Unit: Unit.
|
695
|
+
"""
|
696
|
+
@staticmethod
|
697
|
+
def velocity(length: Length.Unit, time: Time.Unit) -> Derived.Unit:
|
698
|
+
"""
|
699
|
+
Create a velocity unit.
|
700
|
+
|
701
|
+
Args:
|
702
|
+
length (Length::Unit): Length unit.
|
703
|
+
time (Time::Unit): Time unit.
|
704
|
+
|
705
|
+
Returns:
|
706
|
+
Unit: Unit.
|
707
|
+
"""
|
708
|
+
@staticmethod
|
709
|
+
def watt() -> Derived.Unit:
|
710
|
+
"""
|
711
|
+
Create a watt unit.
|
712
|
+
|
713
|
+
Returns:
|
714
|
+
Unit: Unit.
|
715
|
+
"""
|
716
|
+
def __eq__(self, arg0: Derived.Unit) -> bool:
|
717
|
+
...
|
718
|
+
def __init__(self, arg0: Length.Unit, arg1: Derived.Order, arg2: Mass.Unit, arg3: Derived.Order, arg4: Time.Unit, arg5: Derived.Order, arg6: ElectricCurrent.Unit, arg7: Derived.Order, arg8: typing.Any, arg9: Derived.Order) -> None:
|
719
|
+
...
|
720
|
+
def __ne__(self, arg0: Derived.Unit) -> bool:
|
721
|
+
...
|
722
|
+
def get_symbol(self) -> ostk.core.type.String:
|
723
|
+
"""
|
724
|
+
Get symbol.
|
725
|
+
|
726
|
+
Returns:
|
727
|
+
str: Symbol.
|
728
|
+
"""
|
729
|
+
def is_compatible_with(self, arg0: Derived.Unit) -> bool:
|
730
|
+
...
|
731
|
+
def is_defined(self) -> bool:
|
732
|
+
...
|
733
|
+
def to_string(self) -> ostk.core.type.String:
|
734
|
+
"""
|
735
|
+
Convert to string.
|
736
|
+
|
737
|
+
Returns:
|
738
|
+
str: String representation.
|
739
|
+
"""
|
740
|
+
__hash__: typing.ClassVar[None] = None
|
741
|
+
@staticmethod
|
742
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
743
|
+
...
|
744
|
+
@staticmethod
|
745
|
+
def string_from_unit(arg0: typing.Any) -> ostk.core.type.String:
|
746
|
+
"""
|
747
|
+
Get string from unit.
|
748
|
+
|
749
|
+
Args:
|
750
|
+
aUnit (Unit): Unit.
|
751
|
+
|
752
|
+
Returns:
|
753
|
+
str: String.
|
754
|
+
"""
|
755
|
+
@staticmethod
|
756
|
+
def symbol_from_unit(arg0: typing.Any) -> ostk.core.type.String:
|
757
|
+
"""
|
758
|
+
Get symbol from unit.
|
759
|
+
|
760
|
+
Args:
|
761
|
+
aUnit (Unit): Unit.
|
762
|
+
|
763
|
+
Returns:
|
764
|
+
str: Symbol.
|
765
|
+
"""
|
766
|
+
@staticmethod
|
767
|
+
def undefined() -> Derived:
|
768
|
+
"""
|
769
|
+
Create an undefined derived unit.
|
770
|
+
|
771
|
+
Returns:
|
772
|
+
Derived: Derived unit.
|
773
|
+
"""
|
774
|
+
def __eq__(self, arg0: Derived) -> bool:
|
775
|
+
...
|
776
|
+
def __init__(self, arg0: ostk.core.type.Real, arg1: typing.Any) -> None:
|
777
|
+
"""
|
778
|
+
Constructor.
|
779
|
+
|
780
|
+
Args:
|
781
|
+
aValue (Real): Value
|
782
|
+
aUnit (Unit): Unit
|
783
|
+
"""
|
784
|
+
def __ne__(self, arg0: Derived) -> bool:
|
785
|
+
...
|
786
|
+
def __repr__(self) -> str:
|
787
|
+
...
|
788
|
+
def __str__(self) -> str:
|
789
|
+
...
|
790
|
+
def get_unit(self) -> ...:
|
791
|
+
"""
|
792
|
+
Get unit.
|
793
|
+
|
794
|
+
Returns:
|
795
|
+
Unit: Unit.
|
796
|
+
"""
|
797
|
+
def in_unit(self, arg0: typing.Any) -> ostk.core.type.Real:
|
798
|
+
"""
|
799
|
+
Convert to unit.
|
800
|
+
|
801
|
+
Returns:
|
802
|
+
float: Value in unit.
|
803
|
+
"""
|
804
|
+
def is_defined(self) -> bool:
|
805
|
+
"""
|
806
|
+
Check if the derived unit is defined.
|
807
|
+
|
808
|
+
Returns:
|
809
|
+
bool: True if defined.
|
810
|
+
"""
|
811
|
+
def to_string(self, aPrecision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
812
|
+
"""
|
813
|
+
Convert to string.
|
814
|
+
|
815
|
+
Args:
|
816
|
+
aPrecision (int): Precision
|
817
|
+
|
818
|
+
Returns:
|
819
|
+
str: String representation.
|
820
|
+
"""
|
821
|
+
class ElectricCurrent:
|
822
|
+
"""
|
823
|
+
|
824
|
+
Electric current.
|
825
|
+
|
826
|
+
https://en.wikipedia.org/wiki/Electric_current
|
827
|
+
|
828
|
+
"""
|
829
|
+
class Unit:
|
830
|
+
"""
|
831
|
+
Members:
|
832
|
+
|
833
|
+
Undefined :
|
834
|
+
Undefined.
|
835
|
+
|
836
|
+
|
837
|
+
Ampere :
|
838
|
+
Ampere (SI).
|
839
|
+
|
840
|
+
"""
|
841
|
+
Ampere: typing.ClassVar[ElectricCurrent.Unit] # value = <Unit.Ampere: 1>
|
842
|
+
Undefined: typing.ClassVar[ElectricCurrent.Unit] # value = <Unit.Undefined: 0>
|
843
|
+
__members__: typing.ClassVar[dict[str, ElectricCurrent.Unit]] # value = {'Undefined': <Unit.Undefined: 0>, 'Ampere': <Unit.Ampere: 1>}
|
844
|
+
@staticmethod
|
845
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
846
|
+
...
|
847
|
+
def __eq__(self, other: typing.Any) -> bool:
|
848
|
+
...
|
849
|
+
def __getstate__(self) -> int:
|
850
|
+
...
|
851
|
+
def __hash__(self) -> int:
|
852
|
+
...
|
853
|
+
def __index__(self) -> int:
|
854
|
+
...
|
855
|
+
def __init__(self, value: int) -> None:
|
856
|
+
...
|
857
|
+
def __int__(self) -> int:
|
858
|
+
...
|
859
|
+
def __ne__(self, other: typing.Any) -> bool:
|
860
|
+
...
|
861
|
+
def __repr__(self) -> str:
|
862
|
+
...
|
863
|
+
def __setstate__(self, state: int) -> None:
|
864
|
+
...
|
865
|
+
def __str__(self) -> str:
|
866
|
+
...
|
867
|
+
@property
|
868
|
+
def name(self) -> str:
|
869
|
+
...
|
870
|
+
@property
|
871
|
+
def value(self) -> int:
|
872
|
+
...
|
873
|
+
__hash__: typing.ClassVar[None] = None
|
874
|
+
@staticmethod
|
875
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
876
|
+
...
|
877
|
+
@staticmethod
|
878
|
+
def amperes(arg0: ostk.core.type.Real) -> ElectricCurrent:
|
879
|
+
"""
|
880
|
+
Construct an electric current in amperes.
|
881
|
+
|
882
|
+
Returns:
|
883
|
+
ElectricCurrent: An electric current in amperes.
|
884
|
+
"""
|
885
|
+
@staticmethod
|
886
|
+
def string_from_unit(arg0: typing.Any) -> ostk.core.type.String:
|
887
|
+
"""
|
888
|
+
Get the string representation of an electric current unit.
|
889
|
+
|
890
|
+
Returns:
|
891
|
+
str: The string representation.
|
892
|
+
"""
|
893
|
+
@staticmethod
|
894
|
+
def symbol_from_unit(arg0: typing.Any) -> ostk.core.type.String:
|
895
|
+
"""
|
896
|
+
Get the symbol of an electric current unit.
|
897
|
+
|
898
|
+
Returns:
|
899
|
+
str: The symbol.
|
900
|
+
"""
|
901
|
+
@staticmethod
|
902
|
+
def undefined() -> ElectricCurrent:
|
903
|
+
"""
|
904
|
+
Get an undefined electric current.
|
905
|
+
|
906
|
+
Returns:
|
907
|
+
ElectricCurrent: An undefined electric current.
|
908
|
+
"""
|
909
|
+
def __eq__(self, arg0: ElectricCurrent) -> bool:
|
910
|
+
...
|
911
|
+
def __init__(self, arg0: ostk.core.type.Real, arg1: typing.Any) -> None:
|
912
|
+
"""
|
913
|
+
Constructor.
|
914
|
+
|
915
|
+
Args:
|
916
|
+
aReal (Real): A real number.
|
917
|
+
aUnit (ElectricCurrent.Unit): An electric current unit.
|
918
|
+
"""
|
919
|
+
def __ne__(self, arg0: ElectricCurrent) -> bool:
|
920
|
+
...
|
921
|
+
def __repr__(self) -> str:
|
922
|
+
...
|
923
|
+
def get_unit(self) -> ...:
|
924
|
+
"""
|
925
|
+
Get the electric current unit.
|
926
|
+
|
927
|
+
Returns:
|
928
|
+
ElectricCurrent.Unit: The electric current unit.
|
929
|
+
"""
|
930
|
+
def in_amperes(self) -> ostk.core.type.Real:
|
931
|
+
"""
|
932
|
+
Get the electric current in amperes.
|
933
|
+
|
934
|
+
Returns:
|
935
|
+
float: The electric current in amperes.
|
936
|
+
"""
|
937
|
+
def in_unit(self, arg0: typing.Any) -> ostk.core.type.Real:
|
938
|
+
"""
|
939
|
+
Get the electric current in a given unit.
|
940
|
+
|
941
|
+
Returns:
|
942
|
+
float: The electric current in the given unit.
|
943
|
+
"""
|
944
|
+
def is_defined(self) -> bool:
|
945
|
+
"""
|
946
|
+
Check if the electric current is defined.
|
947
|
+
|
948
|
+
Returns:
|
949
|
+
bool: True if defined.
|
950
|
+
"""
|
951
|
+
def to_string(self, aPrecision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
952
|
+
"""
|
953
|
+
Get the string representation of the electric current.
|
954
|
+
|
955
|
+
Args:
|
956
|
+
aPrecision (int): A precision.
|
957
|
+
|
958
|
+
Returns:
|
959
|
+
str: The string representation.
|
960
|
+
"""
|
961
|
+
class Interval:
|
962
|
+
__hash__: typing.ClassVar[None] = None
|
963
|
+
@staticmethod
|
964
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
965
|
+
...
|
966
|
+
@staticmethod
|
967
|
+
def closed(arg0: Length, arg1: Length) -> Interval:
|
968
|
+
"""
|
969
|
+
Construct a closed interval.
|
970
|
+
|
971
|
+
Returns:
|
972
|
+
Interval: A closed interval.
|
973
|
+
"""
|
974
|
+
@staticmethod
|
975
|
+
def undefined() -> Interval:
|
976
|
+
"""
|
977
|
+
Get an undefined interval.
|
978
|
+
|
979
|
+
Returns:
|
980
|
+
Interval: An undefined interval.
|
981
|
+
"""
|
982
|
+
def __eq__(self, arg0: Interval) -> bool:
|
983
|
+
...
|
984
|
+
def __init__(self, arg0: Length, arg1: Length, arg2: ostk.mathematics.object.RealInterval.Type) -> None:
|
985
|
+
"""
|
986
|
+
Constructor.
|
987
|
+
|
988
|
+
Args:
|
989
|
+
aLowerBound (Length): The lower bound.
|
990
|
+
anUpperBound (Length): The upper bound.
|
991
|
+
aType (Interval.Type): The type.
|
992
|
+
"""
|
993
|
+
def __ne__(self, arg0: Interval) -> bool:
|
994
|
+
...
|
995
|
+
def contains_interval(self, arg0: Interval) -> bool:
|
996
|
+
"""
|
997
|
+
Check if the interval contains another interval.
|
998
|
+
|
999
|
+
Args:
|
1000
|
+
anOtherInterval (Interval): Another interval.
|
1001
|
+
|
1002
|
+
Returns:
|
1003
|
+
bool: True if contains.
|
1004
|
+
"""
|
1005
|
+
def contains_length(self, arg0: Length) -> bool:
|
1006
|
+
"""
|
1007
|
+
Check if the interval contains a length.
|
1008
|
+
|
1009
|
+
Args:
|
1010
|
+
aLength (Length): A length.
|
1011
|
+
|
1012
|
+
Returns:
|
1013
|
+
bool: True if contains.
|
1014
|
+
"""
|
1015
|
+
def get_lower_bound(self) -> Length:
|
1016
|
+
"""
|
1017
|
+
Get the lower bound.
|
1018
|
+
|
1019
|
+
Returns:
|
1020
|
+
Length: The lower bound.
|
1021
|
+
"""
|
1022
|
+
def get_upper_bound(self) -> Length:
|
1023
|
+
"""
|
1024
|
+
Get the upper bound.
|
1025
|
+
|
1026
|
+
Returns:
|
1027
|
+
Length: The upper bound.
|
1028
|
+
"""
|
1029
|
+
def intersects(self, arg0: Interval) -> bool:
|
1030
|
+
"""
|
1031
|
+
Check if the interval intersects another interval.
|
1032
|
+
|
1033
|
+
Returns:
|
1034
|
+
bool: True if intersects.
|
1035
|
+
"""
|
1036
|
+
def is_defined(self) -> bool:
|
1037
|
+
"""
|
1038
|
+
Check if the interval is defined.
|
1039
|
+
|
1040
|
+
Returns:
|
1041
|
+
bool: True if defined.
|
1042
|
+
"""
|
1043
|
+
def is_degenerate(self) -> bool:
|
1044
|
+
"""
|
1045
|
+
Check if the interval is degenerate.
|
1046
|
+
|
1047
|
+
Returns:
|
1048
|
+
bool: True if degenerate.
|
1049
|
+
"""
|
1050
|
+
class Length:
|
1051
|
+
"""
|
1052
|
+
|
1053
|
+
Length.
|
1054
|
+
|
1055
|
+
https://en.wikipedia.org/wiki/Length
|
1056
|
+
|
1057
|
+
"""
|
1058
|
+
class Unit:
|
1059
|
+
"""
|
1060
|
+
Members:
|
1061
|
+
|
1062
|
+
Undefined :
|
1063
|
+
Undefined length unit.
|
1064
|
+
|
1065
|
+
|
1066
|
+
Meter :
|
1067
|
+
Meter (SI).
|
1068
|
+
|
1069
|
+
|
1070
|
+
Foot :
|
1071
|
+
Foot.
|
1072
|
+
|
1073
|
+
|
1074
|
+
TerrestrialMile :
|
1075
|
+
Terrestrial mile.
|
1076
|
+
|
1077
|
+
|
1078
|
+
NauticalMile :
|
1079
|
+
Nautical mile.
|
1080
|
+
|
1081
|
+
|
1082
|
+
AstronomicalUnit :
|
1083
|
+
Astronomical Unit.
|
1084
|
+
|
1085
|
+
"""
|
1086
|
+
AstronomicalUnit: typing.ClassVar[Length.Unit] # value = <Unit.AstronomicalUnit: 5>
|
1087
|
+
Foot: typing.ClassVar[Length.Unit] # value = <Unit.Foot: 2>
|
1088
|
+
Meter: typing.ClassVar[Length.Unit] # value = <Unit.Meter: 1>
|
1089
|
+
NauticalMile: typing.ClassVar[Length.Unit] # value = <Unit.NauticalMile: 4>
|
1090
|
+
TerrestrialMile: typing.ClassVar[Length.Unit] # value = <Unit.TerrestrialMile: 3>
|
1091
|
+
Undefined: typing.ClassVar[Length.Unit] # value = <Unit.Undefined: 0>
|
1092
|
+
__members__: typing.ClassVar[dict[str, Length.Unit]] # value = {'Undefined': <Unit.Undefined: 0>, 'Meter': <Unit.Meter: 1>, 'Foot': <Unit.Foot: 2>, 'TerrestrialMile': <Unit.TerrestrialMile: 3>, 'NauticalMile': <Unit.NauticalMile: 4>, 'AstronomicalUnit': <Unit.AstronomicalUnit: 5>}
|
1093
|
+
@staticmethod
|
1094
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
1095
|
+
...
|
1096
|
+
def __eq__(self, other: typing.Any) -> bool:
|
1097
|
+
...
|
1098
|
+
def __getstate__(self) -> int:
|
1099
|
+
...
|
1100
|
+
def __hash__(self) -> int:
|
1101
|
+
...
|
1102
|
+
def __index__(self) -> int:
|
1103
|
+
...
|
1104
|
+
def __init__(self, value: int) -> None:
|
1105
|
+
...
|
1106
|
+
def __int__(self) -> int:
|
1107
|
+
...
|
1108
|
+
def __ne__(self, other: typing.Any) -> bool:
|
1109
|
+
...
|
1110
|
+
def __repr__(self) -> str:
|
1111
|
+
...
|
1112
|
+
def __setstate__(self, state: int) -> None:
|
1113
|
+
...
|
1114
|
+
def __str__(self) -> str:
|
1115
|
+
...
|
1116
|
+
@property
|
1117
|
+
def name(self) -> str:
|
1118
|
+
...
|
1119
|
+
@property
|
1120
|
+
def value(self) -> int:
|
1121
|
+
...
|
1122
|
+
__hash__: typing.ClassVar[None] = None
|
1123
|
+
@staticmethod
|
1124
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
1125
|
+
...
|
1126
|
+
@staticmethod
|
1127
|
+
def kilometers(arg0: ostk.core.type.Real) -> Length:
|
1128
|
+
"""
|
1129
|
+
Construct a length in kilometers.
|
1130
|
+
|
1131
|
+
Returns:
|
1132
|
+
Length: A length in kilometers.
|
1133
|
+
"""
|
1134
|
+
@staticmethod
|
1135
|
+
def meters(arg0: ostk.core.type.Real) -> Length:
|
1136
|
+
"""
|
1137
|
+
Construct a length in meters.
|
1138
|
+
|
1139
|
+
Returns:
|
1140
|
+
Length: A length in meters.
|
1141
|
+
"""
|
1142
|
+
@staticmethod
|
1143
|
+
def millimeters(arg0: ostk.core.type.Real) -> Length:
|
1144
|
+
"""
|
1145
|
+
Construct a length in millimeters.
|
1146
|
+
|
1147
|
+
Returns:
|
1148
|
+
Length: A length in millimeters.
|
1149
|
+
"""
|
1150
|
+
@staticmethod
|
1151
|
+
def parse(arg0: ostk.core.type.String) -> Length:
|
1152
|
+
"""
|
1153
|
+
Parse a string and construct a length.
|
1154
|
+
|
1155
|
+
Args:
|
1156
|
+
aString (str): A string.
|
1157
|
+
|
1158
|
+
Returns:
|
1159
|
+
Length: A length.
|
1160
|
+
"""
|
1161
|
+
@staticmethod
|
1162
|
+
def string_from_unit(arg0: typing.Any) -> ostk.core.type.String:
|
1163
|
+
"""
|
1164
|
+
Get the string representation of a length unit.
|
1165
|
+
|
1166
|
+
Returns:
|
1167
|
+
str: The string representation.
|
1168
|
+
"""
|
1169
|
+
@staticmethod
|
1170
|
+
def symbol_from_unit(arg0: typing.Any) -> ostk.core.type.String:
|
1171
|
+
"""
|
1172
|
+
Get the symbol of a length unit.
|
1173
|
+
|
1174
|
+
Returns:
|
1175
|
+
str: The symbol.
|
1176
|
+
"""
|
1177
|
+
@staticmethod
|
1178
|
+
def undefined() -> Length:
|
1179
|
+
"""
|
1180
|
+
Get an undefined length.
|
1181
|
+
|
1182
|
+
Returns:
|
1183
|
+
Length: An undefined length.
|
1184
|
+
"""
|
1185
|
+
def __add__(self, arg0: Length) -> Length:
|
1186
|
+
...
|
1187
|
+
def __eq__(self, arg0: Length) -> bool:
|
1188
|
+
...
|
1189
|
+
def __ge__(self, arg0: Length) -> bool:
|
1190
|
+
...
|
1191
|
+
def __gt__(self, arg0: Length) -> bool:
|
1192
|
+
...
|
1193
|
+
def __iadd__(self, arg0: Length) -> Length:
|
1194
|
+
...
|
1195
|
+
def __imul__(self, arg0: ostk.core.type.Real) -> Length:
|
1196
|
+
...
|
1197
|
+
def __init__(self, arg0: ostk.core.type.Real, arg1: typing.Any) -> None:
|
1198
|
+
"""
|
1199
|
+
Constructor.
|
1200
|
+
|
1201
|
+
Args:
|
1202
|
+
aReal (Real): A real number.
|
1203
|
+
aUnit (Length.Unit): A length unit.
|
1204
|
+
"""
|
1205
|
+
def __isub__(self, arg0: Length) -> Length:
|
1206
|
+
...
|
1207
|
+
def __itruediv__(self, arg0: ostk.core.type.Real) -> Length:
|
1208
|
+
...
|
1209
|
+
def __le__(self, arg0: Length) -> bool:
|
1210
|
+
...
|
1211
|
+
def __lt__(self, arg0: Length) -> bool:
|
1212
|
+
...
|
1213
|
+
def __mul__(self, arg0: ostk.core.type.Real) -> Length:
|
1214
|
+
...
|
1215
|
+
def __ne__(self, arg0: Length) -> bool:
|
1216
|
+
...
|
1217
|
+
def __neg__(self) -> Length:
|
1218
|
+
...
|
1219
|
+
def __pos__(self) -> Length:
|
1220
|
+
...
|
1221
|
+
def __repr__(self) -> str:
|
1222
|
+
...
|
1223
|
+
def __str__(self) -> str:
|
1224
|
+
...
|
1225
|
+
def __sub__(self, arg0: Length) -> Length:
|
1226
|
+
...
|
1227
|
+
def __truediv__(self, arg0: ostk.core.type.Real) -> Length:
|
1228
|
+
...
|
1229
|
+
def get_unit(self) -> ...:
|
1230
|
+
"""
|
1231
|
+
Get the length unit.
|
1232
|
+
|
1233
|
+
Returns:
|
1234
|
+
Length.Unit: The length unit.
|
1235
|
+
"""
|
1236
|
+
def in_kilometers(self) -> ostk.core.type.Real:
|
1237
|
+
"""
|
1238
|
+
Get the length in kilometers.
|
1239
|
+
|
1240
|
+
Returns:
|
1241
|
+
float: The length in kilometers.
|
1242
|
+
"""
|
1243
|
+
def in_meters(self) -> ostk.core.type.Real:
|
1244
|
+
"""
|
1245
|
+
Get the length in meters.
|
1246
|
+
|
1247
|
+
Returns:
|
1248
|
+
float: The length in meters.
|
1249
|
+
"""
|
1250
|
+
def in_unit(self, arg0: typing.Any) -> ostk.core.type.Real:
|
1251
|
+
"""
|
1252
|
+
Get the length in a given unit.
|
1253
|
+
|
1254
|
+
Returns:
|
1255
|
+
float: The length in the given unit.
|
1256
|
+
"""
|
1257
|
+
def is_defined(self) -> bool:
|
1258
|
+
"""
|
1259
|
+
Check if the length is defined.
|
1260
|
+
|
1261
|
+
Returns:
|
1262
|
+
bool: True if defined.
|
1263
|
+
"""
|
1264
|
+
def is_zero(self) -> bool:
|
1265
|
+
"""
|
1266
|
+
Check if the length is zero.
|
1267
|
+
|
1268
|
+
Returns:
|
1269
|
+
bool: True if zero.
|
1270
|
+
"""
|
1271
|
+
def to_string(self, aPrecision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
1272
|
+
"""
|
1273
|
+
Get the string representation of the length.
|
1274
|
+
|
1275
|
+
Args:
|
1276
|
+
aPrecision (int): A precision.
|
1277
|
+
|
1278
|
+
Returns:
|
1279
|
+
str: The string representation.
|
1280
|
+
"""
|
1281
|
+
class Mass:
|
1282
|
+
"""
|
1283
|
+
|
1284
|
+
Mass.
|
1285
|
+
|
1286
|
+
https://en.wikipedia.org/wiki/Mass
|
1287
|
+
|
1288
|
+
"""
|
1289
|
+
class Unit:
|
1290
|
+
"""
|
1291
|
+
Members:
|
1292
|
+
|
1293
|
+
Undefined :
|
1294
|
+
Undefined.
|
1295
|
+
|
1296
|
+
|
1297
|
+
Kilogram :
|
1298
|
+
Kilogram (SI).
|
1299
|
+
|
1300
|
+
|
1301
|
+
Pound :
|
1302
|
+
Pound.
|
1303
|
+
|
1304
|
+
|
1305
|
+
Tonne :
|
1306
|
+
Tonne.
|
1307
|
+
|
1308
|
+
"""
|
1309
|
+
Kilogram: typing.ClassVar[Mass.Unit] # value = <Unit.Kilogram: 1>
|
1310
|
+
Pound: typing.ClassVar[Mass.Unit] # value = <Unit.Pound: 3>
|
1311
|
+
Tonne: typing.ClassVar[Mass.Unit] # value = <Unit.Tonne: 2>
|
1312
|
+
Undefined: typing.ClassVar[Mass.Unit] # value = <Unit.Undefined: 0>
|
1313
|
+
__members__: typing.ClassVar[dict[str, Mass.Unit]] # value = {'Undefined': <Unit.Undefined: 0>, 'Kilogram': <Unit.Kilogram: 1>, 'Pound': <Unit.Pound: 3>, 'Tonne': <Unit.Tonne: 2>}
|
1314
|
+
@staticmethod
|
1315
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
1316
|
+
...
|
1317
|
+
def __eq__(self, other: typing.Any) -> bool:
|
1318
|
+
...
|
1319
|
+
def __getstate__(self) -> int:
|
1320
|
+
...
|
1321
|
+
def __hash__(self) -> int:
|
1322
|
+
...
|
1323
|
+
def __index__(self) -> int:
|
1324
|
+
...
|
1325
|
+
def __init__(self, value: int) -> None:
|
1326
|
+
...
|
1327
|
+
def __int__(self) -> int:
|
1328
|
+
...
|
1329
|
+
def __ne__(self, other: typing.Any) -> bool:
|
1330
|
+
...
|
1331
|
+
def __repr__(self) -> str:
|
1332
|
+
...
|
1333
|
+
def __setstate__(self, state: int) -> None:
|
1334
|
+
...
|
1335
|
+
def __str__(self) -> str:
|
1336
|
+
...
|
1337
|
+
@property
|
1338
|
+
def name(self) -> str:
|
1339
|
+
...
|
1340
|
+
@property
|
1341
|
+
def value(self) -> int:
|
1342
|
+
...
|
1343
|
+
__hash__: typing.ClassVar[None] = None
|
1344
|
+
@staticmethod
|
1345
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
1346
|
+
...
|
1347
|
+
@staticmethod
|
1348
|
+
def kilograms(arg0: ostk.core.type.Real) -> Mass:
|
1349
|
+
"""
|
1350
|
+
Create a mass in kilograms.
|
1351
|
+
|
1352
|
+
Returns:
|
1353
|
+
Mass: A mass in kilograms.
|
1354
|
+
"""
|
1355
|
+
@staticmethod
|
1356
|
+
def parse(arg0: ostk.core.type.String) -> Mass:
|
1357
|
+
"""
|
1358
|
+
Parse a mass.
|
1359
|
+
|
1360
|
+
Returns:
|
1361
|
+
Mass: A mass.
|
1362
|
+
"""
|
1363
|
+
@staticmethod
|
1364
|
+
def string_from_unit(arg0: typing.Any) -> ostk.core.type.String:
|
1365
|
+
"""
|
1366
|
+
Get string from unit.
|
1367
|
+
|
1368
|
+
Returns:
|
1369
|
+
str: A string.
|
1370
|
+
"""
|
1371
|
+
@staticmethod
|
1372
|
+
def symbol_from_unit(arg0: typing.Any) -> ostk.core.type.String:
|
1373
|
+
"""
|
1374
|
+
Get symbol from unit.
|
1375
|
+
|
1376
|
+
Returns:
|
1377
|
+
str: A symbol.
|
1378
|
+
"""
|
1379
|
+
@staticmethod
|
1380
|
+
def undefined() -> Mass:
|
1381
|
+
"""
|
1382
|
+
Get an undefined mass.
|
1383
|
+
|
1384
|
+
Returns:
|
1385
|
+
Mass: An undefined mass.
|
1386
|
+
"""
|
1387
|
+
def __eq__(self, arg0: Mass) -> bool:
|
1388
|
+
...
|
1389
|
+
def __init__(self, arg0: ostk.core.type.Real, arg1: typing.Any) -> None:
|
1390
|
+
"""
|
1391
|
+
Constructor.
|
1392
|
+
|
1393
|
+
Args:
|
1394
|
+
aReal (Real): A real number.
|
1395
|
+
aUnit (Mass.Unit): A mass unit.
|
1396
|
+
"""
|
1397
|
+
def __ne__(self, arg0: Mass) -> bool:
|
1398
|
+
...
|
1399
|
+
def __repr__(self) -> str:
|
1400
|
+
...
|
1401
|
+
def get_unit(self) -> ...:
|
1402
|
+
"""
|
1403
|
+
Get the mass unit.
|
1404
|
+
|
1405
|
+
Returns:
|
1406
|
+
Mass.Unit: Mass unit.
|
1407
|
+
"""
|
1408
|
+
def in_kilograms(self) -> ostk.core.type.Real:
|
1409
|
+
"""
|
1410
|
+
Convert mass to kilograms.
|
1411
|
+
|
1412
|
+
Returns:
|
1413
|
+
float: Mass in kilograms.
|
1414
|
+
"""
|
1415
|
+
def in_unit(self, arg0: typing.Any) -> ostk.core.type.Real:
|
1416
|
+
"""
|
1417
|
+
Convert mass to unit.
|
1418
|
+
|
1419
|
+
Returns:
|
1420
|
+
float: Mass in unit.
|
1421
|
+
"""
|
1422
|
+
def is_defined(self) -> bool:
|
1423
|
+
"""
|
1424
|
+
Check if the mass is defined.
|
1425
|
+
|
1426
|
+
Returns:
|
1427
|
+
bool: True if defined.
|
1428
|
+
"""
|
1429
|
+
def to_string(self, aPrecision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
1430
|
+
"""
|
1431
|
+
Convert mass to string.
|
1432
|
+
|
1433
|
+
Args:
|
1434
|
+
aPrecision (int): Precision.
|
1435
|
+
|
1436
|
+
Returns:
|
1437
|
+
str: Mass as string.
|
1438
|
+
"""
|
1439
|
+
class Time:
|
1440
|
+
"""
|
1441
|
+
|
1442
|
+
Time.
|
1443
|
+
|
1444
|
+
https://en.wikipedia.org/wiki/Unit_of_time
|
1445
|
+
|
1446
|
+
"""
|
1447
|
+
class Unit:
|
1448
|
+
"""
|
1449
|
+
Members:
|
1450
|
+
|
1451
|
+
Undefined :
|
1452
|
+
Undefined time unit.
|
1453
|
+
|
1454
|
+
|
1455
|
+
Nanosecond :
|
1456
|
+
Nanosecond.
|
1457
|
+
|
1458
|
+
|
1459
|
+
Microsecond :
|
1460
|
+
Microsecond.
|
1461
|
+
|
1462
|
+
|
1463
|
+
Millisecond :
|
1464
|
+
Millisecond.
|
1465
|
+
|
1466
|
+
|
1467
|
+
Second :
|
1468
|
+
Second (SI).
|
1469
|
+
|
1470
|
+
|
1471
|
+
Minute :
|
1472
|
+
Minute.
|
1473
|
+
|
1474
|
+
|
1475
|
+
Hour :
|
1476
|
+
Hour.
|
1477
|
+
|
1478
|
+
|
1479
|
+
Day :
|
1480
|
+
Day.
|
1481
|
+
|
1482
|
+
|
1483
|
+
Week :
|
1484
|
+
Week.
|
1485
|
+
|
1486
|
+
"""
|
1487
|
+
Day: typing.ClassVar[Time.Unit] # value = <Unit.Day: 7>
|
1488
|
+
Hour: typing.ClassVar[Time.Unit] # value = <Unit.Hour: 6>
|
1489
|
+
Microsecond: typing.ClassVar[Time.Unit] # value = <Unit.Microsecond: 2>
|
1490
|
+
Millisecond: typing.ClassVar[Time.Unit] # value = <Unit.Millisecond: 3>
|
1491
|
+
Minute: typing.ClassVar[Time.Unit] # value = <Unit.Minute: 5>
|
1492
|
+
Nanosecond: typing.ClassVar[Time.Unit] # value = <Unit.Nanosecond: 1>
|
1493
|
+
Second: typing.ClassVar[Time.Unit] # value = <Unit.Second: 4>
|
1494
|
+
Undefined: typing.ClassVar[Time.Unit] # value = <Unit.Undefined: 0>
|
1495
|
+
Week: typing.ClassVar[Time.Unit] # value = <Unit.Week: 8>
|
1496
|
+
__members__: typing.ClassVar[dict[str, Time.Unit]] # value = {'Undefined': <Unit.Undefined: 0>, 'Nanosecond': <Unit.Nanosecond: 1>, 'Microsecond': <Unit.Microsecond: 2>, 'Millisecond': <Unit.Millisecond: 3>, 'Second': <Unit.Second: 4>, 'Minute': <Unit.Minute: 5>, 'Hour': <Unit.Hour: 6>, 'Day': <Unit.Day: 7>, 'Week': <Unit.Week: 8>}
|
1497
|
+
@staticmethod
|
1498
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
1499
|
+
...
|
1500
|
+
def __eq__(self, other: typing.Any) -> bool:
|
1501
|
+
...
|
1502
|
+
def __getstate__(self) -> int:
|
1503
|
+
...
|
1504
|
+
def __hash__(self) -> int:
|
1505
|
+
...
|
1506
|
+
def __index__(self) -> int:
|
1507
|
+
...
|
1508
|
+
def __init__(self, value: int) -> None:
|
1509
|
+
...
|
1510
|
+
def __int__(self) -> int:
|
1511
|
+
...
|
1512
|
+
def __ne__(self, other: typing.Any) -> bool:
|
1513
|
+
...
|
1514
|
+
def __repr__(self) -> str:
|
1515
|
+
...
|
1516
|
+
def __setstate__(self, state: int) -> None:
|
1517
|
+
...
|
1518
|
+
def __str__(self) -> str:
|
1519
|
+
...
|
1520
|
+
@property
|
1521
|
+
def name(self) -> str:
|
1522
|
+
...
|
1523
|
+
@property
|
1524
|
+
def value(self) -> int:
|
1525
|
+
...
|
1526
|
+
__hash__: typing.ClassVar[None] = None
|
1527
|
+
@staticmethod
|
1528
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
1529
|
+
...
|
1530
|
+
@staticmethod
|
1531
|
+
def string_from_unit(arg0: typing.Any) -> ostk.core.type.String:
|
1532
|
+
"""
|
1533
|
+
Get the string representation from a time unit.
|
1534
|
+
|
1535
|
+
Args:
|
1536
|
+
aUnit (Time.Unit): A time unit.
|
1537
|
+
|
1538
|
+
Returns:
|
1539
|
+
str: String representation.
|
1540
|
+
"""
|
1541
|
+
@staticmethod
|
1542
|
+
def symbol_from_unit(arg0: typing.Any) -> ostk.core.type.String:
|
1543
|
+
"""
|
1544
|
+
Get the symbol representation from a time unit.
|
1545
|
+
|
1546
|
+
Args:
|
1547
|
+
aUnit (Time.Unit): A time unit.
|
1548
|
+
|
1549
|
+
Returns:
|
1550
|
+
str: Symbol representation.
|
1551
|
+
"""
|
1552
|
+
@staticmethod
|
1553
|
+
def undefined() -> Time:
|
1554
|
+
"""
|
1555
|
+
Create an undefined time.
|
1556
|
+
|
1557
|
+
Returns:
|
1558
|
+
Time: An undefined time.
|
1559
|
+
"""
|
1560
|
+
def __eq__(self, arg0: Time) -> bool:
|
1561
|
+
...
|
1562
|
+
def __init__(self, arg0: ostk.core.type.Real, arg1: typing.Any) -> None:
|
1563
|
+
"""
|
1564
|
+
Constructor.
|
1565
|
+
|
1566
|
+
Args:
|
1567
|
+
aReal (Real): A real number.
|
1568
|
+
aUnit (Time.Unit): A time unit.
|
1569
|
+
"""
|
1570
|
+
def __ne__(self, arg0: Time) -> bool:
|
1571
|
+
...
|
1572
|
+
def __repr__(self) -> str:
|
1573
|
+
...
|
1574
|
+
def is_defined(self) -> bool:
|
1575
|
+
"""
|
1576
|
+
Check if the time is defined.
|
1577
|
+
|
1578
|
+
Returns:
|
1579
|
+
bool: True if defined.
|
1580
|
+
"""
|
1581
|
+
def to_string(self, aPrecision: ostk.core.type.Integer = ...) -> ostk.core.type.String:
|
1582
|
+
"""
|
1583
|
+
Convert time to string.
|
1584
|
+
|
1585
|
+
Args:
|
1586
|
+
aPrecision (int): A precision.
|
1587
|
+
|
1588
|
+
Returns:
|
1589
|
+
str: String representation.
|
1590
|
+
"""
|