PySD Stan Backend #350
Replies: 2 comments 1 reply
-
Subscripts keypoints in the Python builder
Note you need something to keep the information of the subscripts in the model and manage their information (SubscriptManager in the Python builder) and you need to track the subscripts of the expressions you are building. Then there are also some special cases where they are subscripts operations (!) at the end of the range name for example VMAX. Or components with EXCEPT keyword. |
Beta Was this translation helpful? Give feedback.
-
Related to @Dashadower and my discussion on constructing arviz Thanks to Eneko's pointers, pysd/pysd/builders/python/subscripts.py Line 10 in 8aa50ac is subscript class. During stanify refactoring could you consider importing this module as we did for AST in https://github.com/Data4DM/stanify/blob/main/stanify/builders/ast_walker.py#L6 ? @Dashadower @enekomartinmartinez may I ask whether you have tried translating vensim subscript as xarray dims? If so, could you point us to that code? |
Beta Was this translation helpful? Give feedback.
-
Lets see if this discussion can work kindof like a slack channel for the effort to add the Stan Backend. =)
Beta Was this translation helpful? Give feedback.
All reactions