Sort tilegrid_tdb.json for better debugging.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2020-02-18 13:02:34 -08:00
parent 32833e6f93
commit 6a50598cdc
1 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3
from prjxray import xjson
import json
import util as localutil
import os.path
@ -116,12 +117,9 @@ def run(fn_in, fn_out, verbose=False):
localutil.add_tile_bits(tile, tilej, frame, wordidx, frames, words)
# Save
json.dump(
database,
xjson.pprint(
open(fn_out, "w"),
sort_keys=True,
indent=4,
separators=(",", ": "))
database)
def main():