diff --git a/src/main/java/no/nibio/vips/model/negativeprognosismodel/NegativePrognosisModel.java b/src/main/java/no/nibio/vips/model/negativeprognosismodel/NegativePrognosisModel.java index 27a2fde9cfe5ed9e071dda3cc2baa65ad31319fe..cb481775f51c594587d66d94df51d7dee3e4a1ae 100755 --- a/src/main/java/no/nibio/vips/model/negativeprognosismodel/NegativePrognosisModel.java +++ b/src/main/java/no/nibio/vips/model/negativeprognosismodel/NegativePrognosisModel.java @@ -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());