-
Notifications
You must be signed in to change notification settings - Fork 90
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
read_xmile problem (case sensitivity?) #253
Comments
(in particular this is using 0.10.0 from PyPI -- not sure if this is expected fixed as of the latest unpublished) |
Hey @bpowers - good to hear from you! The tool looks really cool - I'm always impressed with your front-end work. Case sensitivity would make sense as a diagnosis, given my read-over. We haven't done much xmile dev work recently, so I'm a bit out of touch with it. @alexprey may know better. I think we're already forcing some patterns in the namespace dictionary (here: https://github.com/JamesPHoughton/pysd/blob/master/pysd/py_backend/xmile/SMILE2Py.py#L226) so maybe we should add one to lowercase everything. I should check what we're doing on the vensim side. The other option is to enforce case sensitivity in xmile file generation. What does the standard say? Regardless, if you figure out what's happening on the XMILE parsing side of pysd and want to make changes, I don't think anyone would mind. =) Either way, this would be an interesting test case to add to the test-models repo, with both an xmile and vensim example. |
Hi folks -- I'm working on a tool that would let you edit a model from inside a jupyter notebook, among other things.
I have an example project here: https://github.com/bpowers/simlin-jupyter-example/blob/main/Lotka.ipynb
but when I call
read_xmile
on the file I produce,pysd
seems to have a problem I believe because the case of the identifier in the variable equation is different from the case of text in the variable name attribute:The text was updated successfully, but these errors were encountered: