[PATCH] Write CSV-header only once
Wald Commits
scm-commit at wald.intevation.org
Tue Sep 9 19:05:24 CEST 2014
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1410282308 -7200
# Node ID d81c4b0d5ca74c14fe7845e62ba83c7161ce6374
# Parent 2b0ff11cef3fcecbb7fe0c3d0f1572a27fa782d6
Write CSV-header only once.
diff -r 2b0ff11cef3f -r d81c4b0d5ca7 artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java Tue Sep 09 18:41:11 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java Tue Sep 09 19:05:08 2014 +0200
@@ -119,6 +119,8 @@
Collections.sort(data);
+ writeCSVHeader(writer);
+
for (MiddleBedHeightData d: data) {
data2CSV(writer, d);
}
@@ -148,8 +150,6 @@
writeMetaData(writer, data);
- writeCSVHeader(writer);
-
NumberFormat kmF = Formatter.getMiddleBedHeightKM(context);
NumberFormat heightF = Formatter.getMiddleBedHeightHeight(context);
NumberFormat uncertF = Formatter.getMiddleBedHeightUncert(context);
More information about the Dive4Elements-commits
mailing list