Skip to content

Commit

Permalink
flake8 remove commented out section
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgait committed May 29, 2018
1 parent 866cafc commit c80a506
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions spynnaker8/models/connectors/from_list_connector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from spynnaker.pyNN.models.neural_projections.connectors \
import FromListConnector as CommonFromListConnector
from spynnaker.pyNN.utilities.utility_calls import convert_param_to_numpy
import numpy
from spynnaker8.utilities.exceptions import InvalidParameterType

Expand All @@ -12,7 +11,6 @@ class FromListConnector(CommonFromListConnector, Connector):
"""
__slots__ = [
"_extra_conn_data",
"_converted_weights_and_delays",
"_conn_list"]

def __init__(
Expand Down Expand Up @@ -54,11 +52,6 @@ def __init__(
delays = None
self._extra_conn_data = None

# supports setting these at different times
# self._weights = None
# self._delays = None
self._converted_weights_and_delays = False

if column_names is None:
# if no column names, but more not the expected
if n_columns == 4:
Expand Down Expand Up @@ -89,43 +82,6 @@ def __init__(
if weights is not None or delays is not None:
self.set_weights_and_delays(weights, delays)

# # replicate the PyNN 0.8 "feature" where the connector overwrites
# # the weights and delays in the synapse if both are specified
# def set_weights_and_delays(self, weights, delays):
# """ allows setting of the weights and delays at separate times to the\
# init, also sets the dtypes correctly.....
#
# :param weights:
# :param delays:
# :return:
# """
# # set the data if not already set (supports none overriding via
# # synapse data)
# print("set_weights_and_delays")
# weight = convert_param_to_numpy(weights, len(self._conn_list))
# delay = convert_param_to_numpy(delays, len(self._conn_list))
#
# # if got data, build connlist with correct dtypes
# if (weight is not None and delay is not None and not
# self._converted_weights_and_delays):
# # add weights and delays to the conn list
# temp_conn_list = numpy.dstack(
# (self._conn_list[:, 0], self._conn_list[:, 1],
# weight, delay))[0]
#
# self._conn_list = list()
# for element in temp_conn_list:
# self._conn_list.append((element[0], element[1], element[2],
# element[3]))
#
# # set dtypes (cant we just set them within the array?)
# self._conn_list = numpy.asarray(self._conn_list,
# dtype=self.CONN_LIST_DTYPE)
# self._converted_weights_and_delays = True
#
# # send the conn_list to the common connector
# CommonFromListConnector.set_conn_list(self, self._conn_list)

def get_extra_parameters(self):
""" getter for the extra parameters
Expand Down

0 comments on commit c80a506

Please sign in to comment.