Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthminmax/FlowDepthMinMaxCalculation.java @ 8980:b194fa64506a
SINFO - show results themes according to spec, either raw data or floating mean values.
Some improvements to error handling and handling of empty results.
author | gernotbelger |
---|---|
date | Thu, 05 Apr 2018 18:30:34 +0200 |
parents | b5600453bb8f |
children | 0adc6d04de95 |
comparison
equal
deleted
inserted
replaced
8979:951a4af24a09 | 8980:b194fa64506a |
---|---|
68 | 68 |
69 final FlowDepthMinMaxCalculationResults results = new FlowDepthMinMaxCalculationResults(calcModeLabel, user, riverInfo, calcRange); | 69 final FlowDepthMinMaxCalculationResults results = new FlowDepthMinMaxCalculationResults(calcModeLabel, user, riverInfo, calcRange); |
70 | 70 |
71 for (final MinMaxIdPair minMaxPair : minMaxPairs) { | 71 for (final MinMaxIdPair minMaxPair : minMaxPairs) { |
72 final FlowDepthMinMaxCalculationResult result = calculateResult(calcRange, minMaxPair, problems, infoProvider); | 72 final FlowDepthMinMaxCalculationResult result = calculateResult(calcRange, minMaxPair, problems, infoProvider); |
73 if (result != null) | 73 results.addResult(result, problems); |
74 results.addResult(result); | |
75 } | 74 } |
76 | 75 |
77 return new CalculationResult(results, problems); | 76 return new CalculationResult(results, problems); |
78 } | 77 } |
79 | 78 |