From f7771afa717ebca212007210b45f526f196ceba8 Mon Sep 17 00:00:00 2001 From: Andrew Gait Date: Tue, 8 Aug 2023 17:30:33 +0100 Subject: [PATCH] Add licenses --- .../create_pops_for_incremental_learning.py | 13 +++++++++++++ eprop_testing/delta_synapse_test.py | 13 +++++++++++++ eprop_testing/frozen_poisson.py | 13 +++++++++++++ eprop_testing/hand_crafted_left_right.py | 13 +++++++++++++ eprop_testing/incremental_config.py | 13 +++++++++++++ eprop_testing/incremental_graph_drawing.py | 13 +++++++++++++ eprop_testing/incremental_learning.py | 13 +++++++++++++ eprop_testing/input_buffer_overflow_test.py | 13 +++++++++++++ .../learn_sinusoid_from_frozen_poisson.py | 13 +++++++++++++ eprop_testing/learn_sinusoid_only_readout.py | 13 +++++++++++++ ...rn_sinusoid_only_readout_single_cycle_input.py | 13 +++++++++++++ eprop_testing/one_neuron.py | 13 +++++++++++++ eprop_testing/plot_graph.py | 15 ++++++++++++++- eprop_testing/pop_rate_test.py | 13 +++++++++++++ eprop_testing/readout_input_test.py | 13 +++++++++++++ eprop_testing/signed_weights_test.py | 13 +++++++++++++ eprop_testing/store_recall.py | 13 +++++++++++++ eprop_testing/test_8_neuron_regularisation.py | 13 +++++++++++++ eprop_testing/test_adaptive_threshold.py | 13 +++++++++++++ eprop_testing/test_learning_signal_by_payload.py | 13 +++++++++++++ eprop_testing/test_left_right_readout.py | 13 +++++++++++++ eprop_testing/test_regularisation.py | 13 +++++++++++++ eprop_testing/test_single_plastic_update.py | 13 +++++++++++++ eprop_testing/test_sinusoid_learning.py | 13 +++++++++++++ eprop_testing/test_synapse_state_evol.py | 13 +++++++++++++ 25 files changed, 326 insertions(+), 1 deletion(-) diff --git a/eprop_testing/create_pops_for_incremental_learning.py b/eprop_testing/create_pops_for_incremental_learning.py index 352c4a54..c1877824 100644 --- a/eprop_testing/create_pops_for_incremental_learning.py +++ b/eprop_testing/create_pops_for_incremental_learning.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn from spynnaker.pyNN.spynnaker_external_device_plugin_manager import SpynnakerExternalDevicePluginManager from plot_graph import draw_graph_from_list, plot_learning_curve diff --git a/eprop_testing/delta_synapse_test.py b/eprop_testing/delta_synapse_test.py index fa5f0ba6..e84c279d 100644 --- a/eprop_testing/delta_synapse_test.py +++ b/eprop_testing/delta_synapse_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/frozen_poisson.py b/eprop_testing/frozen_poisson.py index ef7ca2e9..d59d7ce8 100644 --- a/eprop_testing/frozen_poisson.py +++ b/eprop_testing/frozen_poisson.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np def build_input_spike_train(num_repeats, cycle_time, pop_size, use_old=False): diff --git a/eprop_testing/hand_crafted_left_right.py b/eprop_testing/hand_crafted_left_right.py index 3dc338bb..92ecc4e7 100644 --- a/eprop_testing/hand_crafted_left_right.py +++ b/eprop_testing/hand_crafted_left_right.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/incremental_config.py b/eprop_testing/incremental_config.py index 6546a8e6..0e52682d 100644 --- a/eprop_testing/incremental_config.py +++ b/eprop_testing/incremental_config.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np number_of_cues = 1 diff --git a/eprop_testing/incremental_graph_drawing.py b/eprop_testing/incremental_graph_drawing.py index da3145e6..f03c7fc1 100644 --- a/eprop_testing/incremental_graph_drawing.py +++ b/eprop_testing/incremental_graph_drawing.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/incremental_learning.py b/eprop_testing/incremental_learning.py index 632dae89..b55e7501 100644 --- a/eprop_testing/incremental_learning.py +++ b/eprop_testing/incremental_learning.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np from plot_graph import draw_graph_from_list, plot_learning_curve from create_pops_for_incremental_learning import first_create_pops, next_create_pops, run_until diff --git a/eprop_testing/input_buffer_overflow_test.py b/eprop_testing/input_buffer_overflow_test.py index 24a89391..b2aa5470 100644 --- a/eprop_testing/input_buffer_overflow_test.py +++ b/eprop_testing/input_buffer_overflow_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/learn_sinusoid_from_frozen_poisson.py b/eprop_testing/learn_sinusoid_from_frozen_poisson.py index f08e7f62..0e9025c9 100644 --- a/eprop_testing/learn_sinusoid_from_frozen_poisson.py +++ b/eprop_testing/learn_sinusoid_from_frozen_poisson.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/learn_sinusoid_only_readout.py b/eprop_testing/learn_sinusoid_only_readout.py index 6335a238..6b315ac5 100644 --- a/eprop_testing/learn_sinusoid_only_readout.py +++ b/eprop_testing/learn_sinusoid_only_readout.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/learn_sinusoid_only_readout_single_cycle_input.py b/eprop_testing/learn_sinusoid_only_readout_single_cycle_input.py index 8989fd35..593a0115 100644 --- a/eprop_testing/learn_sinusoid_only_readout_single_cycle_input.py +++ b/eprop_testing/learn_sinusoid_only_readout_single_cycle_input.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/one_neuron.py b/eprop_testing/one_neuron.py index eb370f1b..93494f2d 100644 --- a/eprop_testing/one_neuron.py +++ b/eprop_testing/one_neuron.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/plot_graph.py b/eprop_testing/plot_graph.py index 8d50afc2..3dce00be 100644 --- a/eprop_testing/plot_graph.py +++ b/eprop_testing/plot_graph.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import matplotlib.pyplot as plt import networkx as nx import numpy as np @@ -297,5 +310,5 @@ def create_video(top_directory, base_label, string_end=' SNN.png'): create_video(directory, label, string_end=' learning curve.png') # string_end=' SNN.png') - + print("done") diff --git a/eprop_testing/pop_rate_test.py b/eprop_testing/pop_rate_test.py index 8acff242..f9b26544 100644 --- a/eprop_testing/pop_rate_test.py +++ b/eprop_testing/pop_rate_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/readout_input_test.py b/eprop_testing/readout_input_test.py index 1033df49..2886dc86 100644 --- a/eprop_testing/readout_input_test.py +++ b/eprop_testing/readout_input_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/signed_weights_test.py b/eprop_testing/signed_weights_test.py index d89417d2..c7cb19df 100644 --- a/eprop_testing/signed_weights_test.py +++ b/eprop_testing/signed_weights_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/store_recall.py b/eprop_testing/store_recall.py index a8f0dbea..2b8fd103 100644 --- a/eprop_testing/store_recall.py +++ b/eprop_testing/store_recall.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import spynnaker8 as p from spinn_front_end_common.utility_models import ( ReverseIpTagMultiCastSource) diff --git a/eprop_testing/test_8_neuron_regularisation.py b/eprop_testing/test_8_neuron_regularisation.py index be21414f..db67e6ce 100644 --- a/eprop_testing/test_8_neuron_regularisation.py +++ b/eprop_testing/test_8_neuron_regularisation.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_adaptive_threshold.py b/eprop_testing/test_adaptive_threshold.py index 45d52be8..05f53b15 100644 --- a/eprop_testing/test_adaptive_threshold.py +++ b/eprop_testing/test_adaptive_threshold.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_learning_signal_by_payload.py b/eprop_testing/test_learning_signal_by_payload.py index fe503f13..3f3daa9f 100644 --- a/eprop_testing/test_learning_signal_by_payload.py +++ b/eprop_testing/test_learning_signal_by_payload.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_left_right_readout.py b/eprop_testing/test_left_right_readout.py index ec3634dc..95317c58 100644 --- a/eprop_testing/test_left_right_readout.py +++ b/eprop_testing/test_left_right_readout.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_regularisation.py b/eprop_testing/test_regularisation.py index e00395fd..07ac19b2 100644 --- a/eprop_testing/test_regularisation.py +++ b/eprop_testing/test_regularisation.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import spynnaker8 as p import numpy import math diff --git a/eprop_testing/test_single_plastic_update.py b/eprop_testing/test_single_plastic_update.py index 998b7a02..8c3c073f 100644 --- a/eprop_testing/test_single_plastic_update.py +++ b/eprop_testing/test_single_plastic_update.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_sinusoid_learning.py b/eprop_testing/test_sinusoid_learning.py index fcfa2d37..f20ae422 100644 --- a/eprop_testing/test_sinusoid_learning.py +++ b/eprop_testing/test_sinusoid_learning.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_synapse_state_evol.py b/eprop_testing/test_synapse_state_evol.py index 58e434c7..24291aed 100644 --- a/eprop_testing/test_synapse_state_evol.py +++ b/eprop_testing/test_synapse_state_evol.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt