initial commit of new version
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
#!/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
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user