Skip to content
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

Merged
merged 12 commits into from
Jul 26, 2021

Conversation

ToddFincannon
Copy link
Collaborator

@ToddFincannon ToddFincannon commented Jul 17, 2021

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.

@chrispcampbell chrispcampbell changed the title feat: implement GET DIRECT CONSTANTS for CSV (#83) feat: implement GET DIRECT CONSTANTS for CSV Jul 24, 2021
@chrispcampbell chrispcampbell linked an issue Jul 24, 2021 that may be closed by this pull request
Base automatically changed from todd/81-direct-data-csv to develop July 26, 2021 22:15
Copy link
Contributor

@chrispcampbell chrispcampbell left a 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.

@chrispcampbell chrispcampbell merged commit beedd4f into develop Jul 26, 2021
@chrispcampbell chrispcampbell deleted the todd/83-direct-constants branch July 26, 2021 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement GET DIRECT CONSTANTS
2 participants