From b86b0edf93c714e7ad0345e63865511c2089798e Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Tue, 26 Sep 2023 16:02:47 +0100 Subject: [PATCH 1/2] don't use getWeights() --- learning/split/stdp_split.py | 2 +- learning/split/struct_pl_split.py | 2 +- learning/split/struct_pl_stdp_split.py | 2 +- learning/stdp.py | 2 +- learning/struct_pl.py | 2 +- learning/struct_pl_stdp.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/learning/split/stdp_split.py b/learning/split/stdp_split.py index 720a6f7..354e80e 100755 --- a/learning/split/stdp_split.py +++ b/learning/split/stdp_split.py @@ -64,7 +64,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(stdp_projection.getWeights()) +print(stdp_projection.get('weight')) sim.end() diff --git a/learning/split/struct_pl_split.py b/learning/split/struct_pl_split.py index 7b7d04a..8fd5e4d 100755 --- a/learning/split/struct_pl_split.py +++ b/learning/split/struct_pl_split.py @@ -85,7 +85,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(plastic_projection.getWeights()) +print(plastic_projection.get('weight')) sim.end() diff --git a/learning/split/struct_pl_stdp_split.py b/learning/split/struct_pl_stdp_split.py index 123cc76..21d4d6f 100755 --- a/learning/split/struct_pl_stdp_split.py +++ b/learning/split/struct_pl_stdp_split.py @@ -95,7 +95,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(plastic_projection.getWeights()) +print(plastic_projection.get('weight')) sim.end() diff --git a/learning/stdp.py b/learning/stdp.py index 3a4c22e..06bdd67 100644 --- a/learning/stdp.py +++ b/learning/stdp.py @@ -65,7 +65,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(stdp_projection.getWeights()) +print(stdp_projection.get('weight')) sim.end() diff --git a/learning/struct_pl.py b/learning/struct_pl.py index 6618f6b..2cd1d87 100755 --- a/learning/struct_pl.py +++ b/learning/struct_pl.py @@ -78,7 +78,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(plastic_projection.getWeights()) +print(plastic_projection.get('weight')) sim.end() diff --git a/learning/struct_pl_stdp.py b/learning/struct_pl_stdp.py index 53fd378..4502e96 100755 --- a/learning/struct_pl_stdp.py +++ b/learning/struct_pl_stdp.py @@ -83,7 +83,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(plastic_projection.getWeights()) +print(plastic_projection.get('weight')) sim.end() From b7759c4b8a0705dee4764899fb6adfea81d38a2c Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Tue, 26 Sep 2023 16:20:31 +0100 Subject: [PATCH 2/2] format="list" --- learning/split/stdp_split.py | 2 +- learning/split/struct_pl_split.py | 2 +- learning/split/struct_pl_stdp_split.py | 2 +- learning/stdp.py | 2 +- learning/struct_pl.py | 2 +- learning/struct_pl_stdp.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/learning/split/stdp_split.py b/learning/split/stdp_split.py index 354e80e..fc9e531 100755 --- a/learning/split/stdp_split.py +++ b/learning/split/stdp_split.py @@ -64,7 +64,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(stdp_projection.get('weight')) +print(stdp_projection.get('weight', format="list")) sim.end() diff --git a/learning/split/struct_pl_split.py b/learning/split/struct_pl_split.py index 8fd5e4d..0ea0301 100755 --- a/learning/split/struct_pl_split.py +++ b/learning/split/struct_pl_split.py @@ -85,7 +85,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(plastic_projection.get('weight')) +print(plastic_projection.get('weight', format="list")) sim.end() diff --git a/learning/split/struct_pl_stdp_split.py b/learning/split/struct_pl_stdp_split.py index 21d4d6f..2c05567 100755 --- a/learning/split/struct_pl_stdp_split.py +++ b/learning/split/struct_pl_stdp_split.py @@ -95,7 +95,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(plastic_projection.get('weight')) +print(plastic_projection.get('weight', format="list")) sim.end() diff --git a/learning/stdp.py b/learning/stdp.py index 06bdd67..9bde57e 100644 --- a/learning/stdp.py +++ b/learning/stdp.py @@ -65,7 +65,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(stdp_projection.get('weight')) +print(stdp_projection.get('weight', format="list")) sim.end() diff --git a/learning/struct_pl.py b/learning/struct_pl.py index 2cd1d87..d2f09af 100755 --- a/learning/struct_pl.py +++ b/learning/struct_pl.py @@ -78,7 +78,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(plastic_projection.get('weight')) +print(plastic_projection.get('weight', format="list")) sim.end() diff --git a/learning/struct_pl_stdp.py b/learning/struct_pl_stdp.py index 4502e96..df6194e 100755 --- a/learning/struct_pl_stdp.py +++ b/learning/struct_pl_stdp.py @@ -83,7 +83,7 @@ post_neo = post_pop.get_data(variables=["spikes"]) post_spikes = post_neo.segments[0].spiketrains -print(plastic_projection.get('weight')) +print(plastic_projection.get('weight', format="list")) sim.end()