0

I have successfully instantiated the instance object of the class, and the "dynamics" attribute is a method and has been instantiated successfully, but when using "dynamics" I get an error TypeError: 'NoneType' object is not callable

Error
Traceback (most recent call last):
  File "/home/smy/PycharmProjects/Lyapunov2Torch/safe_learning/test/test_update_set.py", line 23, in test_update_safe_set_with_can_shrink_true
    self.lyap.update_safe_set(can_shrink=True)
  File "/home/smy/PycharmProjects/Lyapunov2Torch/safe_learning/lyapunov.py", line 953, in update_safe_set
    next_states = self.dynamics(py_states, actions)
TypeError: 'NoneType' object is not callable

I hope dynamic can be instantiated correctly

New contributor
my Sun is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.