You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
The text was updated successfully, but these errors were encountered:
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'.
The text was updated successfully, but these errors were encountered: