-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about subscript (Vensim function) #296
Comments
Hi @18811184907
Moreover, currently any kind of lookups accept subscript as a parameter therefore you may need to define an intermediate variable, for transform the subscripts in numeric values, e. g.:
I hope this can help you :) |
Hi @enekomartinmartinez |
Hi @enekomartinmartinez |
Hi @18811184907
About VECTOR ELM MAP, I am not currently working on it. I give preference to the functions I need for the project I am working on, some of the functions I will add in the future have been already tracked in the issues section. In any case, I encourage you to develop this function, I can help you if you need it. Thank you |
Thank you very much for sharing!
------------------ 原始邮件 ------------------
发件人: "JamesPHoughton/pysd" ***@***.***>;
发送时间: 2022年5月23日(星期一) 下午4:12
***@***.***>;
***@***.******@***.***>;
主题: Re: [JamesPHoughton/pysd] Questions about subscript (Vensim function) (#296)
Closed #296 as completed via #312.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
You're welcome :) |
Dear James Houghton:
Hello, I am a postgraduate student from China, learning PySD 1.10.0. I have recently encountered a problem in the use of subscripts, and I would like to ask you for some knowledge about it.
It seems that there is no function in Lookup that can call a value with a subscript or assign a value directly. I'd like to know your solution and hope you have time to look at it and give some advice, your suggestions would be very useful to me. Thank you!
Fang zhe
This is the ‘.mdl’ file.
vensim.txt
This is simple code.
path = r"C:\Users\User\Desktop\all\pythonpysd\"
name = "T15"
typrname = ".mdl"
f = path + name + typrname
model = pysd.read_vensim(f, split_views=True)
print(model.doc())
print(model)
The text was updated successfully, but these errors were encountered: