In [1]:
%pylab inline
import pysd
print pysd.__version__
print pysd.__file__
In [2]:
model = pysd.read_vensim('tests/vensim/Teacup.mdl')
#model = pysd.read_xmile('tests/xmile/teacup.xmile')
In [ ]:
model.run()
In [4]:
import pandas as pd
In [ ]:
pd.read_excel()
In [ ]:
model.set_components({'room_temperature':pd.Series(np.linspace(20,80,30)})
In [11]:
result = model.run()
result.head()
Out[11]:
In [12]:
result.plot()
Out[12]:
In [13]:
import pandas as pd
dictlist = []
with open('tests/speedtest_results.json') as infile:
for line in infile:
dictlist.append(eval(line))
speedtests = pd.DataFrame(dictlist)
speedtests['run teacup baseline'].plot(marker='o');
In [ ]: