From 340348c78c8cf1e38b242aba2da25d48dc3d2a62 Mon Sep 17 00:00:00 2001 From: Alex Kerney Date: Wed, 30 Sep 2020 14:07:25 -0400 Subject: [PATCH] Updating Bedford wave forecast name for beta release CU-d0ue21 --- Changelog.md | 1 + app/forecasts/forecasts/base_forecast.py | 3 ++- app/forecasts/forecasts/neracoos_erddap/bedford.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 0d50080a..8e3bcb8a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,6 +7,7 @@ Additions: Changes: - Add oxygen_concentration_in_sea_water data type. +- Bedford wave forecast should be significant wave height. Fixes: diff --git a/app/forecasts/forecasts/base_forecast.py b/app/forecasts/forecasts/base_forecast.py index e279d0f8..4a68cf43 100644 --- a/app/forecasts/forecasts/base_forecast.py +++ b/app/forecasts/forecasts/base_forecast.py @@ -5,6 +5,7 @@ class ForecastTypes(Enum): WAVE_HEIGHT = "Wave Height" + SIGNIFICANT_WAVE_HEIGHT = "Significant Wave Height" WAVE_PERIOD = "Wave Period" WAVE_DIRECTION = "Wave Direction" AIR_TEMPERATURE = "Air Temperature" @@ -54,7 +55,7 @@ def json(self): "name": self.name, "description": self.description, "source_url": self.source_url, - "units": self.units + "units": self.units, } def __repr__(self): diff --git a/app/forecasts/forecasts/neracoos_erddap/bedford.py b/app/forecasts/forecasts/neracoos_erddap/bedford.py index bc2ddb1c..bab2c255 100644 --- a/app/forecasts/forecasts/neracoos_erddap/bedford.py +++ b/app/forecasts/forecasts/neracoos_erddap/bedford.py @@ -18,7 +18,7 @@ class BedfordWaveHeight(BaseBedfordForecast): slug = "bedford_ww3_wave_height" name = "Bedford Institute Wave Model - Height" description = "Wave Height from the Bedford Institute Wave Model" - forecast_type = ForecastTypes.WAVE_HEIGHT + forecast_type = ForecastTypes.SIGNIFICANT_WAVE_HEIGHT units = "meters" field = "hs"