Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix Python typings #165

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: fix Python typings
helgee committed Nov 14, 2024
commit 117571fc4f850679b658e30e6cc59263d3f4801a
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ lox-ephem = { path = "crates/lox-ephem", version = "0.1.0-alpha.1" }
lox-io = { path = "crates/lox-io", version = "0.1.0-alpha.1" }
lox-math = { path = "crates/lox-math", version = "0.1.0-alpha.2" }
lox-orbits = { path = "crates/lox-orbits", version = "0.1.0-alpha.3" }
lox-space = { path = "crates/lox-space", version = "0.1.0-alpha.4" }
lox-space = { path = "crates/lox-space", version = "0.1.0-alpha.5" }
lox-time = { path = "crates/lox-time", version = "0.1.0-alpha.1" }

csv = "1.3.0"
2 changes: 1 addition & 1 deletion crates/lox-space/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "lox-space"
description = "The Lox toolbox for space mission analysis and design"
version = "0.1.0-alpha.4"
version = "0.1.0-alpha.5"
rust-version.workspace = true
edition.workspace = true
license.workspace = true
7 changes: 6 additions & 1 deletion crates/lox-space/lox_space.pyi
Original file line number Diff line number Diff line change
@@ -7,14 +7,19 @@ type Epoch = Literal["jd", "mjd", "j1950", "j2000"]
type Unit = Literal["seconds", "days", "centuries"]
type Vec3 = tuple[float, float, float]

class ElevationMask:
def __new__(cls, azimuth: np.ndarray, elevation: np.ndarray): ...
@classmethod
def fixed(cls, min_elevation: float) -> Self: ...

def find_events(func: Callable[[float], float], start: Time, times: list[float]): ...
def find_windows(
func: Callable[[float], float], start: Time, end: Time, times: list[float]
): ...
def visibility(
times: list[Time],
gs: GroundLocation,
min_elevation: float,
mask: ElevationMask,
sc: Trajectory,
provider: UT1Provider,
): ...