Updated passing of user namespace when multiple models are run.

这个提交包含在:
Craig Warren
2016-01-29 17:53:34 +00:00
父节点 efad77e287
当前提交 bf962dbdbd

查看文件

@@ -324,7 +324,8 @@ def main():
else:
tsimstart = perf_counter()
for modelrun in range(1, numbermodelruns + 1):
run_model(args, modelrun, numbermodelruns, inputfile, usernamespace)
modelusernamespace = usernamespace.copy()
run_model(args, modelrun, numbermodelruns, inputfile, modelusernamespace)
tsimend = perf_counter()
print('\nTotal simulation time [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=int(tsimend - tsimstart))))