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
I would like to simulate a group of GPS tracked animals by using init within the BehaviorClass to instantiate a Animal class which will iterate through GPS coordinates upon every method call that will be POSTed to the API.
Expected behavior
I expected to be able to use def init(self): to instantiate an DeviceTracker class object with a get_position_update method that returns the GPS coordinates (method acts like a generator that's looped on itself).
Actual behavior
TypeError: init() takes 1 positional argument but 2 were given
Figured it out. Needed to instantiate the DeviceTracker using the on_start method, and then the DeviceTracker class itself needs to select or randomly select the particular animal to simulate.
Description of issue / feature request
I would like to simulate a group of GPS tracked animals by using init within the BehaviorClass to instantiate a Animal class which will iterate through GPS coordinates upon every method call that will be POSTed to the API.
Expected behavior
I expected to be able to use def init(self): to instantiate an DeviceTracker class object with a get_position_update method that returns the GPS coordinates (method acts like a generator that's looped on itself).
Actual behavior
TypeError: init() takes 1 positional argument but 2 were given
Environment settings (for bug reports)
Steps to reproduce (for bug reports)
The text was updated successfully, but these errors were encountered: