Skip to content

Commit

Permalink
Upgrade everything but eccodes, as noble doesn't seem to ship a compa…
Browse files Browse the repository at this point in the history
…tible version for newer eccodes. A small change in position_page was necessary.
  • Loading branch information
ways committed Nov 26, 2024
1 parent dcb7822 commit 3acbcf4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions app/routes/position_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from shapely import wkt, GEOSException, Point
import covjson_pydantic
from covjson_pydantic.coverage import Coverage
from covjson_pydantic.ndarray import NdArray
from covjson_pydantic.ndarray import NdArrayFloat
from math import atan2, pi, sqrt

from initialize import (
Expand Down Expand Up @@ -194,17 +194,17 @@ def create_point(coords: str) -> dict:
],
),
ranges={
"temperature": NdArray(
"temperature": NdArrayFloat(
axisNames=["z"],
shape=[len(isobaric_values)],
values=temperature_values,
),
"wind_from_direction": NdArray(
"wind_from_direction": NdArrayFloat(
axisNames=["z"],
shape=[len(isobaric_values)],
values=wind_dir,
),
"wind_speed": NdArray(
"wind_speed": NdArrayFloat(
axisNames=["z"],
shape=[len(isobaric_values)],
values=wind_speed,
Expand Down
16 changes: 8 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
fastapi[all]~=0.111
uvicorn[standard]~=0.30
fastapi[all]~=0.115.0
uvicorn[standard]~=0.32.0
eccodes~=1.7
cfgrib==0.9.12.0
shapely~=2.0
xarray~=2024.5
requests~=2.32
edr-pydantic~=0.3
covjson-pydantic~=0.3
cfgrib==0.9.14.0
shapely~=2.0.0
xarray~=2024.11.0
requests~=2.32.0
edr-pydantic~=0.5.0
covjson-pydantic~=0.5.0

0 comments on commit 3acbcf4

Please sign in to comment.