summaryrefslogtreecommitdiffstats
path: root/Scripts/generate_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/generate_utils.py')
-rw-r--r--Scripts/generate_utils.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Scripts/generate_utils.py b/Scripts/generate_utils.py
index 1e12103..7d231f9 100644
--- a/Scripts/generate_utils.py
+++ b/Scripts/generate_utils.py
@@ -23,6 +23,15 @@ class Config():
else:
return ceil(float_result)
+ def layerNeedsParity(self, which_layer):
+ num_cells = self.BOARD_ROWS * self.BOARD_COLS
+ layers_in_last_region = num_cells % self.CHARS_PER_SYNC
+ float_result = num_cells / self.CHARS_PER_SYNC
+ if which_layer >= layers_in_last_region:
+ return True
+ else:
+ return False
+
config = Config()
# Implementation detail. We use this parameter to return from the terminal