Corrected new JSON file output format from netgen.

This commit is contained in:
Tim Edwards 2017-03-03 09:11:30 -05:00
parent a0f1b4cc92
commit a7dcb4ef45
1 changed files with 6 additions and 10 deletions

View File

@ -194,15 +194,13 @@ proc netgen::convert_to_json {filename lvs_final} {
puts $fjson " \]," puts $fjson " \],"
} }
} }
puts $fjson " \]"
if {$gidx == $glen} { if {$gidx == $glen} {
puts $fjson " \]" puts $fjson " \]"
} else { } else {
puts $fjson " \]," puts $fjson " \],"
} }
} }
if {$glen > 0} {
puts $fjson " \]"
}
if {$kidx == $nkeys} { if {$kidx == $nkeys} {
puts $fjson " \]" puts $fjson " \]"
} else { } else {
@ -275,15 +273,13 @@ proc netgen::convert_to_json {filename lvs_final} {
puts $fjson " \]," puts $fjson " \],"
} }
} }
puts $fjson " \]"
if {$gidx == $glen} { if {$gidx == $glen} {
puts $fjson " \]" puts $fjson " \]"
} else { } else {
puts $fjson " \]," puts $fjson " \],"
} }
} }
if {$glen > 0} {
puts $fjson " \]"
}
if {$kidx == $nkeys} { if {$kidx == $nkeys} {
puts $fjson " \]" puts $fjson " \]"
} else { } else {