Skip to content

Commit 8640399

Browse files
committed
fix: fix Python typings
1 parent 833b95c commit 8640399

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ lox-ephem = { path = "crates/lox-ephem", version = "0.1.0-alpha.1" }
1818
lox-io = { path = "crates/lox-io", version = "0.1.0-alpha.1" }
1919
lox-math = { path = "crates/lox-math", version = "0.1.0-alpha.2" }
2020
lox-orbits = { path = "crates/lox-orbits", version = "0.1.0-alpha.3" }
21-
lox-space = { path = "crates/lox-space", version = "0.1.0-alpha.4" }
21+
lox-space = { path = "crates/lox-space", version = "0.1.0-alpha.5" }
2222
lox-time = { path = "crates/lox-time", version = "0.1.0-alpha.1" }
2323

2424
csv = "1.3.0"

crates/lox-space/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "lox-space"
33
description = "The Lox toolbox for space mission analysis and design"
4-
version = "0.1.0-alpha.4"
4+
version = "0.1.0-alpha.5"
55
rust-version.workspace = true
66
edition.workspace = true
77
license.workspace = true

crates/lox-space/lox_space.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ type Epoch = Literal["jd", "mjd", "j1950", "j2000"]
77
type Unit = Literal["seconds", "days", "centuries"]
88
type Vec3 = tuple[float, float, float]
99

10+
class ElevationMask:
11+
def __new__(cls, azimuth: np.ndarray, elevation: np.ndarray): ...
12+
@classmethod
13+
def fixed(cls, min_elevation: float) -> Self: ...
14+
1015
def find_events(func: Callable[[float], float], start: Time, times: list[float]): ...
1116
def find_windows(
1217
func: Callable[[float], float], start: Time, end: Time, times: list[float]
1318
): ...
1419
def visibility(
1520
times: list[Time],
1621
gs: GroundLocation,
17-
min_elevation: float,
22+
mask: ElevationMask,
1823
sc: Trajectory,
1924
provider: UT1Provider,
2025
): ...

0 commit comments

Comments
 (0)