diff --git a/src/polyphy/core/common.py b/src/polyphy/core/common.py index 22d525c..c55a3af 100644 --- a/src/polyphy/core/common.py +++ b/src/polyphy/core/common.py @@ -167,7 +167,7 @@ class PPInternalData: def __init_internal_data__(self, kernels): pass - def edit_data(self, edit_index: PPTypes.INT_CPU, + def edit_data(self, edit_index: PPTypes.INT_CPU, window: ti.ui.Window) -> PPTypes.INT_CPU: pass diff --git a/src/polyphy/core/discrete3D.py b/src/polyphy/core/discrete3D.py index 4319b1e..b2ed645 100644 --- a/src/polyphy/core/discrete3D.py +++ b/src/polyphy/core/discrete3D.py @@ -374,7 +374,7 @@ def __init__(self, ppInternalData, ppConfig, batch_mode=False, num_iterations=-1 if self.do_quit: break - if batch_mode is False: + if not batch_mode: window.destroy()