Skip to content

Commit

Permalink
fix: fix Python typings
Browse files Browse the repository at this point in the history
  • Loading branch information
helgee committed Nov 14, 2024
1 parent 833b95c commit 8640399
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
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
Expand Up @@ -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"
Expand Down
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
Expand Down
7 changes: 6 additions & 1 deletion crates/lox-space/lox_space.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
): ...
Expand Down

0 comments on commit 8640399

Please sign in to comment.