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

Simplifying weather Observation imports from ModelConfiguration

parent 5bc16883
No related branches found
No related tags found
No related merge requests found
...@@ -382,11 +382,7 @@ public class AlternariaModel extends I18nImpl implements Model{ ...@@ -382,11 +382,7 @@ public class AlternariaModel extends I18nImpl implements Model{
WeatherUtil weatherUtil = new WeatherUtil(); WeatherUtil weatherUtil = new WeatherUtil();
List<WeatherObservation> observations = mapper.convertValue List<WeatherObservation> observations = modelUtil.extractWeatherObservationList(config.getConfigParameter("observations"));
(
config.getConfigParameter("observations")
, new TypeReference<List<WeatherObservation>>(){}
);
List<Date> sprayingDates = null; List<Date> sprayingDates = null;
List<WeatherObservation> altenariaWeatherLIstHourly_tm = new ArrayList<WeatherObservation>(); List<WeatherObservation> altenariaWeatherLIstHourly_tm = new ArrayList<WeatherObservation>();
List<WeatherObservation> altenariaWeatherLIstHourly_lw = new ArrayList<WeatherObservation>(); List<WeatherObservation> altenariaWeatherLIstHourly_lw = new ArrayList<WeatherObservation>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment