not used, error prone for row/major column hickups
This commit is contained in:
parent
5ccfc10bc3
commit
ff16a0866c
|
@ -100,20 +100,6 @@ def execute(cmd,
|
||||||
if process.returncode != 0: raise RuntimeError('{} failed with returncode {}'.format(cmd,process.returncode))
|
if process.returncode != 0: raise RuntimeError('{} failed with returncode {}'.format(cmd,process.returncode))
|
||||||
return out,error
|
return out,error
|
||||||
|
|
||||||
# -----------------------------
|
|
||||||
def gridLocation(idx,res):
|
|
||||||
return ( idx % res[0], \
|
|
||||||
( idx // res[0]) % res[1], \
|
|
||||||
( idx // res[0] // res[1]) % res[2] )
|
|
||||||
|
|
||||||
|
|
||||||
# -----------------------------
|
|
||||||
def gridIndex(location,res):
|
|
||||||
return ( location[0] % res[0] + \
|
|
||||||
( location[1] % res[1]) * res[0] + \
|
|
||||||
( location[2] % res[2]) * res[1] * res[0] )
|
|
||||||
|
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
class extendableOption(Option):
|
class extendableOption(Option):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue