From 91603e7e019d08febea5b3ca6f1bb1b53c6b2304 Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 29 Jun 2021 16:44:52 -0700 Subject: [PATCH] Fix spare+value notation error --- compiler/characterizer/functional.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/compiler/characterizer/functional.py b/compiler/characterizer/functional.py index 3027a7ba..399c4857 100644 --- a/compiler/characterizer/functional.py +++ b/compiler/characterizer/functional.py @@ -310,8 +310,13 @@ class functional(simulation): return(new_word) # Split extra cols - vals = value[-self.num_spare_cols - 1:] - spare_vals = value[:-self.num_spare_cols - 1] + if self.num_spare_cols > 0: + vals = value[self.num_spare_cols:] + spare_vals = value[:self.num_spare_cols] + else: + vals = values + spare_vals = "" + # Insert underscores vals = delineate(vals) spare_vals = delineate(spare_vals)