From 51b27990b8862b9e9399349725736c3b6081bc4b Mon Sep 17 00:00:00 2001 From: Christian-B Date: Fri, 25 Sep 2026 07:29:55 +0100 Subject: [PATCH] use enumerate --- examples/extra_models_examples/vogels_2011.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/extra_models_examples/vogels_2011.py b/examples/extra_models_examples/vogels_2011.py index 0ecdbbe..877ba45 100644 --- a/examples/extra_models_examples/vogels_2011.py +++ b/examples/extra_models_examples/vogels_2011.py @@ -263,10 +263,8 @@ def run(self, slow_down_static, slow_down_plastic, extract_weights): if self.SAVE_ALL_CONNECTIVITY_IF_INSANE: projs = [plastic_ie_projection] - index = 0 - for proj in projs: + for index, proj in enumerate(projs): proj.save("all", f"projection{index}_data_plastic") - index += 1 # Get plastic spikes and save to disk static_in_spikes_numpy = None