Add TODO to remove hack.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2018-10-05 09:34:02 -07:00
parent fcac3aa05c
commit f77755ea5d
4 changed files with 6 additions and 1 deletions

View File

@ -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']

View File

@ -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': {}

View File

@ -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': {}

View File

@ -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': {}