瀏覽代碼

fix(dependencies): force using Numpy 2.0

pull/73/head
Jérôme Deuchnord 4 月之前
父節點
當前提交
2b16e813e1
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. +3
    -3
      kosmorrolib/events.py
  2. +3
    -3
      pyproject.toml

+ 3
- 3
kosmorrolib/events.py 查看文件

@@ -250,7 +250,7 @@ def _search_maximal_elongations(
EventType.MAXIMAL_ELONGATION,
[planet],
translate_to_timezone(time.utc_datetime(), timezone),
details={"deg": elongation},
details={"deg": float(elongation)},
)
)

@@ -299,7 +299,7 @@ def _search_apogee(to_aster: Object, from_aster: Object = EARTH) -> callable:
EventType.APOGEE,
[to_aster],
translate_to_timezone(time.utc_datetime(), timezone),
details={"distance_km": distances[i]},
details={"distance_km": float(distances[i])},
)
)

@@ -338,7 +338,7 @@ def _search_perigee(aster: Object, from_aster: Object = EARTH) -> callable:
EventType.PERIGEE,
[aster],
translate_to_timezone(time.utc_datetime(), timezone),
details={"distance_km": distances[i]},
details={"distance_km": float(distances[i])},
)
)



+ 3
- 3
pyproject.toml 查看文件

@@ -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]


Loading…
取消
儲存