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

Fixing deserialization of Weather data

parent bca8e618
No related branches found
No related tags found
No related merge requests found
...@@ -216,7 +216,7 @@ public class OatFloweringModel extends I18nImpl implements Model{ ...@@ -216,7 +216,7 @@ public class OatFloweringModel extends I18nImpl implements Model{
this.TM = new ArrayList(); this.TM = new ArrayList();
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
List<WeatherObservation> observations = mapper.convertValue(config.getConfigParameter("observations"), new TypeReference<List<WeatherObservation>>(){}); List<WeatherObservation> observations = this.modelUtil.extractWeatherObservationList(config.getConfigParameter("observations"));
// Must be complete set of daily mean temperatures // Must be complete set of daily mean temperatures
WeatherUtil wUtil = new WeatherUtil(); WeatherUtil wUtil = new WeatherUtil();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment