InteractiveRobotLearning/src/InteractionQuery/InteractionQuery/regular.py
2024-02-15 12:04:54 +01:00

13 lines
283 B
Python

class RegularQuery:
def __init__(self, regular, episode):
self.regular = int(regular)
self.counter = episode
def query(self):
if self.counter % self.regular == 0 and self.counter != 0:
return True
else:
return False