Skip to content

Conversation

@beutlich
Copy link
Member

@beutlich beutlich commented Dec 22, 2020

Taken from prototype implementation of ModelicaTableAdditions. Note, that no additional external 3-rd party dependencies are utilized. CSV tables with quoted values or line breaks are not supported.

@beutlich beutlich added enhancement New feature or enhancement L: Blocks Issue addresses Modelica.Blocks L: C-Sources Issue addresses Modelica/Resources/C-Sources labels Dec 22, 2020
@beutlich beutlich added this to the MSL4.1.0 milestone Dec 22, 2020
@beutlich beutlich self-assigned this Dec 22, 2020
@beutlich beutlich force-pushed the add-csv branch 4 times, most recently from fb6c967 to dd505cb Compare December 22, 2020 11:42
@beutlich
Copy link
Member Author

beutlich commented Dec 22, 2020

I updated the binaries in my branch "update-binaries-add-csv". Use https://github.com/beutlich/ModelicaStandardLibrary/tree/update-binaries-add-csv if you want to test it.

@dietmarw
Copy link
Member

dietmarw commented Jan 7, 2021

Could it be that you forgot to add some test models that are reading the CSV files that were added?

@beutlich
Copy link
Member Author

beutlich commented Jan 7, 2021

Could it be that you forgot to add some test models that are reading the CSV files that were added?

Yes, I will add them, but wanted to gather some early feedback from library officers first. At least I it is covered by CI.

@MartinOtter MartinOtter removed their request for review January 11, 2021 17:36
@MartinOtter
Copy link
Member

MartinOtter commented Jan 11, 2021

Sorry, currently have no time to inspect this in detail and therefore removed me as Reviewers

@beutlich
Copy link
Member Author

beutlich commented Jan 15, 2021

I updated the binaries in my branch "update-binaries-add-csv". Use https://github.com/beutlich/ModelicaStandardLibrary/tree/update-binaries-add-csv if you want to test it.

@dietmarw I've just added the test models to ModelicaTest. If you want to test with Dymola 2021x make sure to set Advanced.PlaceDymolaSourceFirst = 2; and use the provided binaries.

@beutlich beutlich requested a review from HansOlsson January 15, 2021 21:01
Copy link
Member

@dietmarw dietmarw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.
Note Advanced.PlaceDymolaSourceFirst = 2; was also necessary for Dymola 2020

Copy link
Contributor

@HansOlsson HansOlsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good.
I tried rebuilding binaries and running test-case and the result matched the csv-file.

@beutlich beutlich merged commit 965fb54 into modelica:master Feb 9, 2021
@beutlich beutlich deleted the add-csv branch February 9, 2021 20:40
@beutlich beutlich changed the title Add reading of CSV files to ModelicaStandardTables Add reading of CSV files from ModelicaTableAdditions to ModelicaStandardTables Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or enhancement L: Blocks Issue addresses Modelica.Blocks L: C-Sources Issue addresses Modelica/Resources/C-Sources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants