Skip to content

Commit

Permalink
fix(dependencies): force using Numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Deuchnord committed Aug 3, 2024
1 parent 7aff41b commit 2b16e81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions kosmorrolib/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def f(time: Time):
EventType.MAXIMAL_ELONGATION,
[planet],
translate_to_timezone(time.utc_datetime(), timezone),
details={"deg": elongation},
details={"deg": float(elongation)},
)
)

Expand Down Expand Up @@ -299,7 +299,7 @@ def f(start_time: Time, end_time: Time, timezone: int) -> [Event]:
EventType.APOGEE,
[to_aster],
translate_to_timezone(time.utc_datetime(), timezone),
details={"distance_km": distances[i]},
details={"distance_km": float(distances[i])},
)
)

Expand Down Expand Up @@ -338,7 +338,7 @@ def f(start_time: Time, end_time: Time, timezone: int) -> [Event]:
EventType.PERIGEE,
[aster],
translate_to_timezone(time.utc_datetime(), timezone),
details={"distance_km": distances[i]},
details={"distance_km": float(distances[i])},
)
)

Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8"
skyfield = "^1.21"
skyfield = "^1.49"
numpy = [
{ version = "<1.25", python = "3.8.*" },
{ version = "^1.25", python = ">=3.9,<3.13" },
{ version = "^2.0", python = ">=3.9,<3.13" },
]
skyfield-data = ">=3,<6"
skyfield-data = "*"
python-dateutil = "^2.8"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 2b16e81

Please sign in to comment.