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