Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gutzbenj committed Jan 5, 2025
1 parent 05efb99 commit 708d97f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions tests/core/timeseries/test_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ def test_summary_temperature_air_mean_2m_daily(default_settings):
"station_id": "7ac6c582",
"parameter": "temperature_air_mean_2m",
"date": selected_dates[0],
"value": 273.65,
"value": 0.5,
"distance": 13.42,
"taken_station_id": "01048",
},
{
"station_id": "7ac6c582",
"parameter": "temperature_air_mean_2m",
"date": selected_dates[1],
"value": 267.65,
"value": -5.5,
"distance": 5.05,
"taken_station_id": "01051",
},
{
"station_id": "7ac6c582",
"parameter": "temperature_air_mean_2m",
"date": selected_dates[2],
"value": 270.45,
"value": -2.7,
"distance": 0.0,
"taken_station_id": "01050",
},
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/cli/test_cli_interpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ def test_cli_interpolate_geojson():
"station_id": "6754d04d",
"parameter": "temperature_air_mean_2m",
"date": "1986-10-31T00:00:00+00:00",
"value": 279.52,
"value": 6.37,
"distance_mean": 16.99,
"taken_station_ids": ["00072", "02074", "02638", "04703"],
},
{
"station_id": "6754d04d",
"date": "1986-11-01T00:00:00+00:00",
"parameter": "temperature_air_mean_2m",
"value": 281.85,
"value": 8.7,
"distance_mean": 0.0,
"taken_station_ids": ["00071"],
},
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/cli/test_cli_summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ def test_cli_summarize_geojson():
"station_id": "a87291a8",
"parameter": "temperature_air_mean_2m",
"date": "1986-10-31T00:00:00+00:00",
"value": 279.75,
"value": 6.6,
"distance": 6.97,
"taken_station_id": "00072",
},
{
"station_id": "a87291a8",
"parameter": "temperature_air_mean_2m",
"date": "1986-11-01T00:00:00+00:00",
"value": 281.85,
"value": 8.7,
"distance": 0.0,
"taken_station_id": "00071",
},
Expand Down
18 changes: 9 additions & 9 deletions tests/ui/test_restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,11 @@ def test_values_dwd_sql_tabular(client):
assert len(data) >= 8
item = data[0]
assert item == {
"cloud_cover_total": 6.9,
"cloud_cover_total": 0.8625,
"qn_cloud_cover_total": 10.0,
"dataset": "climate_summary",
"date": "2020-01-25T00:00:00+00:00",
"humidity": 89.0,
"humidity": 0.89,
"qn_humidity": 10.0,
"precipitation_form": 0.0,
"qn_precipitation_form": 10.0,
Expand Down Expand Up @@ -404,15 +404,15 @@ def test_interpolate_dwd(client):
"station_id": "6754d04d",
"parameter": "temperature_air_mean_2m",
"date": "1986-10-31T00:00:00+00:00",
"value": 279.52,
"value": 6.37,
"distance_mean": 16.99,
"taken_station_ids": ["00072", "02074", "02638", "04703"],
},
{
"station_id": "6754d04d",
"parameter": "temperature_air_mean_2m",
"date": "1986-11-01T00:00:00+00:00",
"value": 281.85,
"value": 8.7,
"distance_mean": 0.0,
"taken_station_ids": ["00071"],
},
Expand Down Expand Up @@ -446,7 +446,7 @@ def test_interpolate_dwd_lower_interpolation_distance(client):
"station_id": "6754d04d",
"parameter": "temperature_air_mean_2m",
"date": "1986-11-01T00:00:00+00:00",
"value": 281.85,
"value": 8.7,
"distance_mean": 0.0,
"taken_station_ids": ["00071"],
},
Expand All @@ -472,15 +472,15 @@ def test_interpolate_dwd_dont_use_nearby_station(client):
"station_id": "6754d04d",
"parameter": "temperature_air_mean_2m",
"date": "1986-10-31T00:00:00+00:00",
"value": 279.52,
"value": 6.37,
"distance_mean": 16.99,
"taken_station_ids": ["00072", "02074", "02638", "04703"],
},
{
"station_id": "6754d04d",
"parameter": "temperature_air_mean_2m",
"date": "1986-11-01T00:00:00+00:00",
"value": 281.85,
"value": 8.7,
"distance_mean": 11.33,
"taken_station_ids": ["00071", "00072", "02074", "02638"],
},
Expand Down Expand Up @@ -542,15 +542,15 @@ def test_summarize_dwd(client):
"station_id": "a87291a8",
"parameter": "temperature_air_mean_2m",
"date": "1986-10-31T00:00:00+00:00",
"value": 279.75,
"value": 6.6,
"distance": 6.97,
"taken_station_id": "00072",
},
{
"station_id": "a87291a8",
"parameter": "temperature_air_mean_2m",
"date": "1986-11-01T00:00:00+00:00",
"value": 281.85,
"value": 8.7,
"distance": 0.0,
"taken_station_id": "00071",
},
Expand Down

0 comments on commit 708d97f

Please sign in to comment.