#!/bin/bash NUM_LEVELS = 9 NUM_HISTO_BINS = 16 NUM_ID_BINS = 5 # id, x, y, tilew, tileh def check_params(params, k, defaultval): if k in params.keys(): return params[k] else: return defaultval LEVELS_CONFIG = [ { "level": 0, "tiles": False, "gridsplit": None, "target": False, "targetblocks": None }, { "level": 1, "tiles": False, "gridsplit": None, "target": False, "targetblocks": None }, { "level": 2, "tiles": False, "gridsplit": None, "target": False, "targetblocks": None }, { "level": 3, "tiles": True, "gridsplit": None, "target": False, "targetblocks": None }, { "level": 4, "tiles": True, "gridsplit": None, "target": False, "targetblocks": None }, { "level": 5, "tiles": True, "gridsplit": None, "target": False, "targetblocks": None }, { "level": 6, "tiles": True, "gridsplit": None, "target": False, "targetblocks": None }, { "level": 7, "tiles": True, "gridsplit": None, "target": False, "targetblocks": None } ]