From a7dcb4ef45eef70a19dc2fce64f6f80cdffcdabf Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 3 Mar 2017 09:11:30 -0500 Subject: [PATCH] Corrected new JSON file output format from netgen. --- tcltk/netgen.tcl.in | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/tcltk/netgen.tcl.in b/tcltk/netgen.tcl.in index a58631e..f113214 100644 --- a/tcltk/netgen.tcl.in +++ b/tcltk/netgen.tcl.in @@ -194,15 +194,13 @@ proc netgen::convert_to_json {filename lvs_final} { puts $fjson " \]," } } + puts $fjson " \]" if {$gidx == $glen} { - puts $fjson " \]" + puts $fjson " \]" } else { - puts $fjson " \]," + puts $fjson " \]," } } - if {$glen > 0} { - puts $fjson " \]" - } if {$kidx == $nkeys} { puts $fjson " \]" } else { @@ -275,15 +273,13 @@ proc netgen::convert_to_json {filename lvs_final} { puts $fjson " \]," } } + puts $fjson " \]" if {$gidx == $glen} { - puts $fjson " \]" + puts $fjson " \]" } else { - puts $fjson " \]," + puts $fjson " \]," } } - if {$glen > 0} { - puts $fjson " \]" - } if {$kidx == $nkeys} { puts $fjson " \]" } else {