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/simulationarchive.pyi
2021-02-26 21:33:00 +01:00

40 lines
1.3 KiB
Python

from ctypes import Structure, c_int
from typing import Any, Optional, Callable, Sequence, Iterator, Literal, Iterable, Tuple, Union
import numpy
from . import Simulation
from .types import IntBoolean
class SimulationArchive(Structure):
setup: Callable
setup_args: Sequence
process_warnings: bool
warnings: c_int
tmin: float
tmax: float
def __repr__(self) -> str: ...
def __init__(self, filename: str, setup: Optional[Callable] = ..., setup_args: Sequence = ...,
process_warnings: bool = ..., reuse_index: Optional[SimulationArchive] = ...) -> None: ...
def __del__(self) -> None: ...
def __getitem__(self, key: int) -> Simulation: ...
def __setitem__(self, key: int, value: Any) -> None: ...
def __delitem__(self, key: int) -> None: ...
def __iter__(self) -> Iterator[Simulation]: ...
def __len__(self) -> int: ...
def getSimulation(self, t: float, mode: Literal["snapshot", "close", "exact"] = ...,
keep_unsynchronized: IntBoolean = ...) -> Simulation: ...
def getSimulations(self, times: Iterable[float], **kwargs: Any) -> Iterator[Simulation]: ...
def getBezierPaths(self, origin: Union[None, int, Literal["com"]] = ...) -> Tuple[numpy.ndarray, numpy.ndarray]: ...