Issue: Cannot init variables via Vector{Vector{}} indexing. #490
ofSingularMind
started this conversation in
General
Replies: 1 comment 1 reply
-
@ofSingularMind this first model specification should have thrown an error when running the model macro, since, as far as I know, we don't allow double indexing on the left hand side. On my PC, this model macro does not even parse and already throws. Can you double check? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I had a data variable ω for which I needed to process the components of in separate nodes. I formatted ω as a Vector{Vector{}} and passed it to the model in data = () field. I defined the portion of my model specific to ω as below.
Unfortunately, this did not work and lead to node variables not being updated. The solution was to format data object ω as a matrix and to utilize row, column indexing as below.
This works fine, but maybe we should allow for Vector{Vector{}} formatting of data variables that need to be split up.
Thanks! Alex
Beta Was this translation helpful? Give feedback.
All reactions