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

Making sure it doesn't break down when getting hourly values just partly

for the last day in the sequence
parent 574b3a51
Branches
Tags
1 merge request!1Master
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
......@@ -235,7 +235,7 @@ public class PsilaRosaeTempModel extends I18nImpl implements Model {
throw new ConfigValidationException("Please provide weather data.");
}
for(WeatherObservation o:observations)
{
{
switch(o.getElementMeasurementTypeId())
{
case WeatherElements.TEMPERATURE_MEAN:
......@@ -261,7 +261,9 @@ public class PsilaRosaeTempModel extends I18nImpl implements Model {
this.TM,
this.timeZone,
15,
WeatherUtil.AGGREGATION_TYPE_AVERAGE);
WeatherUtil.AGGREGATION_TYPE_AVERAGE,
0,
true);
for(WeatherObservation obs:dailyTemperatures)
{
this.dataMatrix.setParamValueForDate(obs.getTimeMeasured(), DataMatrix.TMD, obs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment