1
0
Fork 0
mirror of https://github.com/Findus23/rebound-stubs.git synced 2024-09-19 15:13:48 +02:00
rebound-stubs/rebound/units.pyi

36 lines
857 B
Python
Raw Permalink Normal View History

2021-01-14 19:09:42 +01:00
from ctypes import c_uint32
2021-10-12 16:49:20 +02:00
from typing import Dict, Sequence, Optional
2021-01-14 19:09:42 +01:00
2021-02-17 14:12:42 +01:00
from . import Particle
2021-01-14 19:09:42 +01:00
2021-10-12 16:49:20 +02:00
def hash_to_unit(hash: c_uint32) -> Optional[str]: ...
2021-01-14 19:09:42 +01:00
G_SI: float
times_SI: Dict[str, float]
lengths_SI: Dict[str, float]
masses_SI: Dict[str, float]
def units_convert_particle(p: Particle, old_l: str, old_t: str, old_m: str,
new_l: str, new_t: str, new_m: str) -> Particle: ...
def convert_mass(mass: float, old_m: str, new_m: str) -> float: ...
def convert_length(length: float, old_l: str, new_l: str) -> float: ...
def convert_vel(vel: float, old_l: str, old_t: str, new_l: str, new_t: str) -> float: ...
def convert_acc(acc: float, old_l: str, old_t: str, new_l: str, new_t: str) -> float: ...
def convert_G(newunits: Sequence[str]) -> float: ...
def check_units(newunits: Sequence[str]) -> Sequence[str]: ...