SDXorg / PySD-Cookbook

Simple Recipes for Powerful Analysis of System Dynamics Models
62 stars 32 forks source link

how to solve the issue #14

Closed ourren closed 8 years ago

ourren commented 8 years ago

Hi , James

When I use 'pysd' library to write some program, it shows this error as below. How can I solve this isssue. Thanks.

%pylab inline
import pysd

model = pysd.read_vensim('./A4.mdl')
stocks = model.run()

_

Populating the interactive namespace from numpy and matplotlib

File "./A4.py", line 66 @cache('step') ^ SyntaxError: invalid syntax

_

JamesPHoughton commented 8 years ago

That is rather interesting. If you'd like to send me the .py file, I can have a closer look - there doesn't seem to be a syntax problem in what you've posted here, so its probably something internal to A4.py. If you'd like, you can send it to me at james.p.houghton@gmail.com.

ourren commented 8 years ago

Sent~

JamesPHoughton commented 8 years ago

Moved to https://github.com/JamesPHoughton/pysd/issues/83