[PATCH] bundu bezugswst export little review

Wald Commits scm-commit at wald.intevation.org
Mon Jul 30 10:09:33 CEST 2018


# HG changeset patch
# User gernotbelger
# Date 1532938164 -7200
# Node ID 66c7f2defc80c24935df1b5a8a88d3445f0b1901
# Parent  1899595a807045e7ed895f10822b7d8833ac2bcb
bundu bezugswst export little review

diff -r 1899595a8070 -r 66c7f2defc80 artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstCalculation.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstCalculation.java	Mon Jul 30 08:04:45 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstCalculation.java	Mon Jul 30 10:09:24 2018 +0200
@@ -58,7 +58,7 @@
         final int startYear = access.getStartYear();
         final int endYear = access.getBezugsJahr();
         final Integer ud = access.getUd();
-        final double[] qs = access.getQs();
+        final double[] qs = access.getQs();// funktioniert so nicht.
         final Double missingVolFrom = access.getMissingVolFrom();
         final Double missingVolTo = access.getMissingVolTo();
 
diff -r 1899595a8070 -r 66c7f2defc80 artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstMainCalculationResult.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstMainCalculationResult.java	Mon Jul 30 08:04:45 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstMainCalculationResult.java	Mon Jul 30 10:09:24 2018 +0200
@@ -79,8 +79,8 @@
         else if (this.qOfGauges != null)
             exportContextCSV.writeCSVMetaEntry("common.export.waterlevel.csv.meta.q", this.qOfGauges); // was auch immer dieser String beinhalten mag
 
-        exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.function", this.function);
-        exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.missing_volume_range", this.missingVolumeFrom, this.missingVolumeTo);
+        if (this.missingVolumeFrom != null && this.missingVolumeTo != null)
+            exportContextCSV.writeCSVMetaEntry("bundu.export.bezugswst.csv.meta.missing_volume_range", this.missingVolumeFrom, this.missingVolumeTo);
 
         exportContextCSV.writeBlankLine();
     }


More information about the Dive4Elements-commits mailing list