Skip to content

Call steps method after super.loop #298

@lizlooney

Description

@lizlooney

Remove the following code from opmode.py.

# Call steps method if it exists in the derived class
if hasattr(self, 'steps') and callable(self.steps):`
    self.steps()

Instead, change the python generator for the loop method so it calls super.loop() and then calls self.steps()

See #291 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions