saroele / awesim

Python module for management of Modelica simulation files in .mat format
46 stars 13 forks source link

expand result.values(...) -function #20

Open rubenbaetens opened 11 years ago

rubenbaetens commented 11 years ago

The current result.values( ) function returns the retrieved results as a list. Maybe it is desirable to include an option 'type' to retrieve the results as a numpy array making certain scripts much more readable and shorter.

eg.

saroele commented 11 years ago

We could also make a result.array() method. I was also thinking to make the transition to a pandas dataframe more built-in with a result.dataframe() method. Maybe differentiating in the methods is better than using an argument to differentiate what one single method returns?

rubenbaetens commented 11 years ago

in such way of thinking, also a function result.sum() might be favourable.