kdavies4 / ModelicaRes

Set up, analyze, and plot Modelica simulations in Python
http://kdavies4.github.io/ModelicaRes/
Other
51 stars 20 forks source link

'SimRes' object has no attribute 'find' #24

Open dietmarw opened 9 years ago

dietmarw commented 9 years ago

I was just starting to use Modelica res however it seems that something does not quite work as it should:

In [11]:
from modelicares import SimRes
sim = SimRes('test.mat')
sim.find('ramp.y')
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-16-3c4dae3c8df3> in <module>()
----> 1 sim.find('ramp.y')

AttributeError: 'SimRes' object has no attribute 'find'
kdavies4 commented 9 years ago

I just noticed this open issue. In version 0.12 and earlier, use the names method. This will be renamed to find in version 0.13 and above. I'm sorry this wasn't documented correctly, but I'll release version 0.13 soon to clear it up.