Exemplo n.º 1
0
 def run(self):
   model = mp_model.build(self._args.file)
   decomposer = decomposers.get_instance_of(self._args.decomposer_id, model)
   try:
     decomposer.decompose()
   except Exception, e:
     logging.exception('Cannot decompose the model.')
     return
Exemplo n.º 2
0
def build_mp_model(*args, **kwargs):
  return mp_model.build(*args, **kwargs)
Exemplo n.º 3
0
 def run(self):
   try:
     model = mp_model.build(self._args.file)
   except Exception, e:
     logging.exception('Cannot read the model.')
     return