-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
-
Please provide full details on the code giving rise to the error. |
Beta Was this translation helpful? Give feedback.
-
Looks like an error thrown by pysd from the screenshot. A minimal reproducible example would be very useful to help you further with this issue. Since this is likely not an issue with the workbench, I'm going to convert this to a Discussion. |
Beta Was this translation helpful? Give feedback.
-
#I tried to run .mdl file using pysd !pip -q install pySD
import numpy as np
import pandas as pd
import pysd
import matplotlib.pyplot as plt vmodel = pysd.read_vensim('Query_file.mdl')
SD_result = vmodel.run() #the values of LT1, LT2 parameters in the original model are 30 and 3 respectively SD_result = vmodel.run(params={ 'LT1':60, 'LT2':6}) #I again tried to change the parameter values to 30 and 3, but it showed me an error: list assignment index out of range SD_result = vmodel.run(params={ 'LT1':30, 'LT2':3}) Query_file.zip |
Beta Was this translation helpful? Give feedback.
this seems a pysd issue because there is no workbench code involved at all.