我想启动一个模型,但是根据Python,该路径不存在。有人知道为什么吗?
我已经尝试将斜杠改成反斜杠
下面,给出了错误。
ValueError Traceback (most recent call last)
<ipython-input-13-0a7542ef0d57> in <module>
ema_logging.log_to_stderr(ema_logging.INFO)
vensimModel = VensimModel("SimpleModel", wd = r'./models/vensim example', model_file=r'\model.vpm')
vensimModel.uncertainties = [RealParameter("x11", 0, 2.5), RealParameter("x12", -2.5, 2.5)]
~\tests_ESDMA\ema_workbench\connectors\vensim.py in __init__(self, name, wd, model_file)
super(BaseVensimModel, self).__init__(name, wd=wd, model_file=model_file)
self.outcomes.extend(TimeSeriesOutcome('TIME', variable_name='Time'))
~\tests_ESDMA\ema_workbench\em_framework\model.py in __init__(self, name, wd, model_file)
super(FileModel, self).__init__(name, wd=wd)
path_to_file = os.path.join(self.working_directory, model_file)
~\tests_ESDMA\ema_workbench\em_framework\model.py in __init__(self, name, wd)
if not os.path.exists(self.working_directory): raise ValueError("{} does not exist".format(self.working_directory))
def as_dict(self):
ValueError: C:\Users\u160207\tests_ESDMA\models\vensim example does not exist