-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: implement GET DIRECT CONSTANTS for CSV #86
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I merged the latest from develop
into this branch, changed the path passed to readCsv
to be relative to the model directory (like we did for previous branches), and then verified that all tests are passing, so I think this is ready to be merged. I'll merge it shortly.
Fixes #83
GET DIRECT CONSTANTS is implemented during code generation by reading the CSV file and generating a constant initialization for each cell value. A test model is included that covers zero, one, and two dimensions of data (all the possibilities for a CSV file in Vensim). One test covers the case where subscripts occur in a different order on the LHS than in the data.