From e10e9c2daf5dc461a4a34fec4565a52d5c6b7e73 Mon Sep 17 00:00:00 2001 From: Jasmine Stone Date: Tue, 12 Jul 2022 22:03:52 -0400 Subject: [PATCH] Fix hardcoding and make mask and output line up. Previously, there was a hard coded delay between the end of the stimulus and the beginning of the output, but the mask started having the network match the output when the stimulus turned off. --- psychrnn/tasks/perceptual_discrimination.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psychrnn/tasks/perceptual_discrimination.py b/psychrnn/tasks/perceptual_discrimination.py index 1652851..c52ba7e 100644 --- a/psychrnn/tasks/perceptual_discrimination.py +++ b/psychrnn/tasks/perceptual_discrimination.py @@ -112,7 +112,7 @@ def trial_function(self, t, params): x_t[dir] += 1 + coh x_t[(dir + 1) % 2] += 1 - if t > onset + stim_dur + 20: + if t >= onset + stim_dur: y_t[dir] = self.hi y_t[1-dir] = self.lo