Fixing deserialization of Weather data
Compare changes
@@ -22,6 +22,7 @@ import no.nibio.vips.model.Model;
@@ -22,6 +22,7 @@ import no.nibio.vips.model.Model;
@@ -345,12 +346,12 @@ public class FinnCerealModels extends I18nImpl implements Model {
@@ -345,12 +346,12 @@ public class FinnCerealModels extends I18nImpl implements Model {
List<WeatherObservation> temperature = objectMapper.convertValue(arg0.getConfigParameter("temperature"), new TypeReference<List<WeatherObservation>>(){});
List<WeatherObservation> rainfall = objectMapper.convertValue(arg0.getConfigParameter("rainfall"), new TypeReference<List<WeatherObservation>>(){});
List<WeatherObservation> rh = objectMapper.convertValue(arg0.getConfigParameter("rh"), new TypeReference<List<WeatherObservation>>(){});
List<WeatherObservation> windSpeedAll = objectMapper.convertValue(arg0.getConfigParameter("windspeed"), new TypeReference<List<WeatherObservation>>(){});