Skip to content
Snippets Groups Projects
Commit 42da60c3 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Bugfix: Extract observations correctly [IDEC-349]

parent c0b58f78
No related branches found
No related tags found
No related merge requests found
......@@ -245,7 +245,7 @@ public class NegativePrognosisModel extends I18nImpl implements Model{
// Setting timezone
this.timeZone = TimeZone.getTimeZone((String) config.getConfigParameter("timeZone"));
// Getting weather data
List<WeatherObservation> observations = mapper.convertValue(config.getConfigParameter("observations"), new TypeReference<List<WeatherObservation>>(){});
List<WeatherObservation> observations = modelUtil.extractWeatherObservationList(config.getConfigParameter("observations"));
for(WeatherObservation o:observations)
{
this.dataMatrix.setParamDoubleValueForDate(o.getTimeMeasured(), o.getElementMeasurementTypeId(), o.getValue());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment