diff --git a/Simulation/CancerInvasionSteppables.py b/Simulation/CancerInvasionSteppables.py index 1890bc5..91fedaa 100644 --- a/Simulation/CancerInvasionSteppables.py +++ b/Simulation/CancerInvasionSteppables.py @@ -90,8 +90,8 @@ def initialize_stable_ecm(self): break # Generate fiber with safety checks - start_x = random.randint(100, 399) - start_y = random.randint(100, 399) + start_x = random.randint(100, self.dim.x - 101) + start_y = random.randint(100, self.dim.y - 101) angle = random.uniform(0, 2 * math.pi) # Create simple linear fiber @@ -150,7 +150,7 @@ def initialize_stable_cells(self): """Create stable cancer cell cluster""" try: print("Creating stable cancer cell cluster...") - center_x, center_y = 250, 250 + center_x, center_y = int(self.dim.x / 2), int(self.dim.y / 2) target_cells = 50 # Reduced for stability cells_created = 0 diff --git a/Simulation/__pycache__/CancerInvasionSteppables.cpython-312.pyc b/Simulation/__pycache__/CancerInvasionSteppables.cpython-312.pyc deleted file mode 100644 index 9876e9d..0000000 Binary files a/Simulation/__pycache__/CancerInvasionSteppables.cpython-312.pyc and /dev/null differ