Skip to content

Commit

Permalink
Add update method to SampleIfTrue
Browse files Browse the repository at this point in the history
Add update method to SampleIfTrue with a pass, so when trying to update SampleIfTrue nothing will be done.
Improves reliability and speed.
  • Loading branch information
enekomartinmartinez authored May 11, 2021
1 parent 494e571 commit 10338ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pysd/py_backend/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ def __call__(self):
def ddt(self):
return 0

def update(self, state):
# this doesn't change once it's set up.
pass

class Smooth(Stateful):
def __init__(self, smooth_input, smooth_time, initial_value, order):
super().__init__()
Expand Down

0 comments on commit 10338ca

Please sign in to comment.