[PATCH 1 of 2] (issue1620) Print the real official Q value instead of the first

Wald Commits scm-commit at wald.intevation.org
Fri Nov 29 11:13:47 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1385719951 -3600
# Node ID 3e3a4f44423a8fce138170b42bac6ea187ddc8a4
# Parent  505737373ba45bec5f29533ce96fa65476a93079
(issue1620) Print the real official Q value instead of the first

    The assumption Q=Q becomes false if there are more then one
    waterlevels to be exported and only one of them has an official
    value.

diff -r 505737373ba4 -r 3e3a4f44423a artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java	Thu Nov 28 10:16:55 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java	Fri Nov 29 11:12:31 2013 +0100
@@ -830,7 +830,7 @@
                 double km = entry.getKey().doubleValue();
                 int idx = officialKms.indexOf(km);
                 if (idx != -1) {
-                    entry.getValue().add(wqkms.getW(idx), entry.getValue().getQ(0));
+                    entry.getValue().add(wqkms.getW(idx), wqkms.getQ(idx));
                 }
             }
 


More information about the Dive4elements-commits mailing list