@@ -177,7 +177,7 @@ def apply_cellular_automaton_rules(
177
177
... ages, birth_neighbor_counts={2},
178
178
... survival_neighbor_counts={2, 3}, use_wraparound=False
179
179
... )
180
- >>> bool(new_ages[0, 0] > 0) # corner should be born (2 neighbors: right and down)
180
+ >>> bool(new_ages[0, 0] > 0) # corner should be born
181
181
True
182
182
183
183
>>> # Test aging of dead cells
@@ -189,7 +189,7 @@ def apply_cellular_automaton_rules(
189
189
>>> bool(result[0, 0] == 3) # should age from 2 to 3
190
190
True
191
191
192
- >>> apply_cellular_automaton_rules(np.array([1, 2]), {1}, {1}) # doctest: +IGNORE_EXCEPTION_DETAIL
192
+ >>> apply_cellular_automaton_rules(np.array([1, 2]), {1}, {1})
193
193
Traceback (most recent call last):
194
194
ValueError: current_ages must be a 2D array
195
195
"""
@@ -272,7 +272,7 @@ def simulate_von_neumann_cellular_automaton(
272
272
>>> all(grid.shape == (5, 5) for grid in result)
273
273
True
274
274
275
- >>> simulate_von_neumann_cellular_automaton(generations=0) # doctest: +IGNORE_EXCEPTION_DETAIL
275
+ >>> simulate_von_neumann_cellular_automaton(generations=0)
276
276
Traceback (most recent call last):
277
277
ValueError: generations must be positive
278
278
"""
@@ -632,7 +632,7 @@ def demo_randomized() -> None:
632
632
def demo_statistics () -> None :
633
633
"""Example 5: Print statistics about automaton evolution."""
634
634
try :
635
- final_state = simulate_cellular_automaton (
635
+ final_state = visualize_cellular_automaton (
636
636
rule_b = [3 ],
637
637
rule_s = [2 , 3 ],
638
638
size = 50 ,
0 commit comments