Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test - fix forecast calibration test to round appropriately #345

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion air-quality-backend/system_tests/utils/cams_utilities.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import pprint
from datetime import datetime
from pandas import read_csv

Expand Down Expand Up @@ -127,6 +128,17 @@ def get_forecast_percentage_divergence(
pollutant, "database_forecast", database_record_for_city_and_valid_time
)

database_pollutant_value_3dp = round(database_pollutant_value, 3)

pprint.pprint(
"City: {}, Pollutant: {}, ECMWF value: {}, database value: {}".format(
test_city,
pollutant,
ecmwf_forecast_pollutant_value,
database_pollutant_value_3dp,
)
)

return calculate_database_divergence_from_ecmwf_forecast_values(
database_pollutant_value, ecmwf_forecast_pollutant_value
database_pollutant_value_3dp, ecmwf_forecast_pollutant_value
)
Loading