rland93 / pendsim

A simple inverse pendulum simulation + visualization.
MIT License
0 stars 5 forks source link

added `dt` to tutorial movie vis #13

Closed cooperrc closed 2 years ago

cooperrc commented 2 years ago

I received an error in the tutorial

In [18]: visu = viz.Visualizer(results, pend, speed=1)                                                              
---------------------------------------------------------------------------                                         
TypeError                                 Traceback (most recent call last)                                         
Input In [18], in <cell line: 1>()                                                                                  
----> 1 visu = viz.Visualizer(results, pend, speed=1)                                                               

TypeError: Visualizer.__init__() missing 1 required positional argument: 'dt'                                       

So I added the dt = dt argument to the Visualizer argument in the tutorial