mirror of https://github.com/openXC7/prjxray.git
Add TODO to remove hack.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
fcac3aa05c
commit
f77755ea5d
|
|
@ -226,7 +226,9 @@ for segment_name in database["segments"].keys():
|
|||
# print(tile_type, offset)
|
||||
assert False
|
||||
|
||||
|
||||
# TODO: Migrate to new tilegrid format via library. This data is added for
|
||||
# compability with unconverted tools. Update tools then remove this data from
|
||||
# tilegrid.json.
|
||||
for tiledata in database['tiles'].values():
|
||||
if "segment" in tiledata:
|
||||
segment = tiledata['segment']
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ def run(f_in, f_out, sparse=False, debug=False):
|
|||
os.getenv("XRAY_DATABASE")), "r") as f:
|
||||
new_grid = json.load(f)
|
||||
|
||||
# TODO: Migrate to new tilegrid format via library.
|
||||
grid = {
|
||||
'tiles': new_grid,
|
||||
'segments': {}
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ def run(f_in, f_out, sparse=False):
|
|||
os.getenv("XRAY_DATABASE")), "r") as f:
|
||||
new_grid = json.load(f)
|
||||
|
||||
# TODO: Migrate to new tilegrid format via library.
|
||||
grid = {
|
||||
'tiles': new_grid,
|
||||
'segments': {}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ with open("%s/%s/tilegrid.json" % (os.getenv("XRAY_DATABASE_DIR"),
|
|||
os.getenv("XRAY_DATABASE")), "r") as f:
|
||||
new_grid = json.load(f)
|
||||
|
||||
# TODO: Migrate to new tilegrid format via library.
|
||||
grid = {
|
||||
'tiles': new_grid,
|
||||
'segments': {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue