mirror of https://github.com/openXC7/prjxray.git
Sort tilegrid_tdb.json for better debugging.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
32833e6f93
commit
6a50598cdc
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in New Issue