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

Fixing deserialization of Weather data

parent b5bf2a42
No related branches found
No related tags found
No related merge requests found
...@@ -280,7 +280,7 @@ public class BremiaLactucaeModel extends I18nImpl implements Model { ...@@ -280,7 +280,7 @@ public class BremiaLactucaeModel extends I18nImpl implements Model {
} }
// Getting weather data // Getting weather data
List<WeatherObservation> observations = objectMapper.convertValue(config.getConfigParameter("observations"), new TypeReference<List<WeatherObservation>>(){}); List<WeatherObservation> observations = this.modelUtil.extractWeatherObservationList(config.getConfigParameter("observations"));
for(WeatherObservation o:observations) for(WeatherObservation o:observations)
{ {
this.dataMatrix.setParamDoubleValueForDate(o.getTimeMeasured(), o.getElementMeasurementTypeId(), o.getValue()); 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