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
Tables: Text files with Windows line endings cannot be read on Linux #1264
Comments
Comment by sjoelund.se on 5 Sep 2013 10:03 UTC |
Comment by beutlich on 5 Sep 2013 11:01 UTC You can use the CombiTimeTable with source:Modelica/trunk/Modelica/Resources/Data/Tables/test.txt and manually convert line endings. |
Comment by sjoelund.se on 5 Sep 2013 11:07 UTC loadModel(ModelicaTest);getErrorString();
simulate(ModelicaTest.Tables.CombiTimeTable.Test50);getErrorString(); Gives me (converted to Windows line-endings):
|
Comment by sjoelund.se on 5 Sep 2013 11:07 UTC |
Comment by tove.bergdahl on 5 Sep 2013 11:10 UTC
This is the same error as I got. |
Comment by sjoelund.se on 5 Sep 2013 11:12 UTC |
Comment by beutlich on 5 Sep 2013 11:15 UTC
OK, thanks. If you think there is no need to test on OSX we can skip it. |
Comment by beutlich on 5 Sep 2013 11:21 UTC |
Comment by dietmarw on 5 Sep 2013 14:54 UTC |
Modified by dietmarw on 15 Nov 2013 13:35 UTC |
Modified by beutlich on 18 Aug 2014 19:57 UTC |
Changelog modified by beutlich on 18 Aug 2014 19:57 UTC |
Reported by beutlich on 3 Sep 2013 15:29 UTC
This was never tested: Text files with Windows line endings (= CRLF) cannot be read by ModelicaStandardTables on Linux. Error message is: "Error in line when reading numeric data of matrix ...". Workaround is to change line endings to Linux style (= LF).
I have a patch running bit would like to see it tested on Linux and Mac.
Migrated-From: https://trac.modelica.org/Modelica/ticket/1264
The text was updated successfully, but these errors were encountered: