예제 #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
예제 #2
0
def build_mp_model(*args, **kwargs):
  return mp_model.build(*args, **kwargs)
예제 #3
0
 def run(self):
   try:
     model = mp_model.build(self._args.file)
   except Exception, e:
     logging.exception('Cannot read the model.')
     return