Skip to content

Commit 1868dac

Browse files
committed
Fix: replace t_end by t_start to reverse operator in utils.by
1 parent b033cd4 commit 1868dac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@ def apply(self, **kwargs):
128128
past_idx = (t-1) % np.shape(self.u)[0]
129129
self.u[idx][:] = self.u[past_idx][:] + self.direction * 1
130130
else:
131-
idx = t_end % np.shape(self.u)[0]
131+
idx = (t_start) % np.shape(self.u)[0]
132132
self.v[:] = (self.u[idx][:]*(-1) + 1)
133133
self.counter += abs(t_end - t_start)

0 commit comments

Comments
 (0)