Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculator.java @ 9298:0b1a51b0c42e
Included the infrastructure-less stations in the S-Info flood duration long. sections, and the selected wspls in their w/q duration curves
author | mschaefer |
---|---|
date | Wed, 25 Jul 2018 11:33:48 +0200 |
parents | 7100a555607c |
children | 9055afc19ec6 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculator.java Wed Jul 25 10:12:27 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculator.java Wed Jul 25 11:33:48 2018 +0200 @@ -161,12 +161,12 @@ // Search the station in the previously calculated result rows and terminate if no infrastructure row found double station1 = station; if (Double.isNaN(station)) { - for (final ResultRow row : result.getRows()) { + for (final ResultRow row : result.getAllRows()) { station1 = row.getDoubleValue(GeneralResultType.station); break; } } - final List<ResultRow> stationRows = searchStation(station1, result.getRows()); + final List<ResultRow> stationRows = searchStation(station1, result.getAllRows()); if (stationRows.isEmpty()) { return new ArrayList<>(); } @@ -191,12 +191,12 @@ // Search the station in the previously calculated result rows and terminate if no infrastructure row found double station1 = station; if (Double.isNaN(station)) { - for (final ResultRow row : result.getRows()) { + for (final ResultRow row : result.getAllRows()) { station1 = row.getDoubleValue(GeneralResultType.station); break; } } - final List<ResultRow> stationRows = searchStation(station1, result.getRows()); + final List<ResultRow> stationRows = searchStation(station1, result.getAllRows()); if (stationRows.isEmpty()) { return new ArrayList<>(); }