pull/1042/head
India Johnson 2019-02-06 20:23:05 +00:00
rodzic dfc1107b9a
commit cfd8c04e22
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -9,6 +9,7 @@ from opendm import context
class ODMMveCell(ecto.Cell):
def declare_params(self, params):
params.declare("output_scale", "scale of optimization", 2)
params.declare("threads", "max number of threads", context.num_cores)
def declare_io(self, params, inputs, outputs):
inputs.declare("tree", "Struct with paths", [])
@ -65,6 +66,7 @@ class ODMMveCell(ecto.Cell):
# config
config = [
"-t%s" % self.params.threads,
"-s%s" % self.params.output_scale
]