add args.mve_output_scale

Former-commit-id: 8a7587337b
pull/1161/head
India Johnson 2019-02-11 17:06:28 +00:00
rodzic 83fd8a8557
commit 9e08dbab52
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -9,7 +9,7 @@ from opendm import context
class ODMMveCell(ecto.Cell):
def declare_params(self, params):
params.declare("mve_output_scale", "scale of optimization", 2)
#params.declare("threads", "max number of threads", context.num_cores)
# params.declare("threads", "max number of threads", context.num_cores)
def declare_io(self, params, inputs, outputs):
inputs.declare("tree", "Struct with paths", [])
@ -64,10 +64,11 @@ class ODMMveCell(ecto.Cell):
if not io.dir_exists(tree.mve_views):
system.run('%s %s %s' % (context.makescene_path, tree.mve_path, tree.mve))
print(args)
# config
config = [
#"-t%s" % self.params.threads,
"-s%s" % self.args.mve_output_scale
"-s%s" % args.mve_output_scale
]
# run mve