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

to_pandas() error when progressing modified simulation data #39

Open
FWuellhorst opened this issue Apr 19, 2017 · 0 comments
Open

to_pandas() error when progressing modified simulation data #39

FWuellhorst opened this issue Apr 19, 2017 · 0 comments

Comments

@FWuellhorst
Copy link

When trying to export simulation data to a dataFrame pandas raises a KeyError.
The problem is that Dymola does not store the units into the *.mat-file when using Dymola functions like "writeTrajectory" or "Export Results".
It would be great if the function's return line could be updated to a more dynamic one, like:
return DataFrame(data).set_index('Time / '+self['Time'].unit)
This way one could use to_pandas() for modified simulation data.
Of course it would also be possible to change the data entry 'Time / ' to 'Time / s'.

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

No branches or pull requests

1 participant