From efd86e9edd58b7ef6f5bf0eec9b96332ab86826d Mon Sep 17 00:00:00 2001 From: Bo Wun Cheng Date: Thu, 9 May 2024 20:05:58 -0700 Subject: [PATCH] updated sam simulation code of the dense scanner so leading stop token won't break the code --- sam/sim/src/rd_scanner.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sam/sim/src/rd_scanner.py b/sam/sim/src/rd_scanner.py index 08b3690a..5e51553a 100644 --- a/sam/sim/src/rd_scanner.py +++ b/sam/sim/src/rd_scanner.py @@ -139,6 +139,11 @@ def update(self): self.curr_ref = 'D' self.done = True return + elif is_stkn(self.curr_in_ref): + stkn = increment_stkn(self.curr_in_ref) + self.curr_crd = stkn + self.curr_ref = stkn + return else: self.curr_crd = 0 self.curr_ref = self.curr_crd + (self.curr_in_ref * self.meta_dim)