diff --git a/connector.py b/connector.py index c9cdc10..a84cccc 100644 --- a/connector.py +++ b/connector.py @@ -51,7 +51,7 @@ def __init__(self, data): self.y_std = np.std(data[:, 1], axis=0) ratio = 4.0/3.0 # (Number of SOM unit) / (Number of points) - self.w = np.zeros(int(data.shape[0]*ratio), dtype=np.complex) + self.w = np.zeros(int(data.shape[0]*ratio), dtype=np.cdouble) @property diff --git a/tuner.py b/tuner.py index 9c0e560..5a71b0d 100644 --- a/tuner.py +++ b/tuner.py @@ -30,7 +30,7 @@ def roll_to_max_distance(self, order): def permute(self, index, order): - tests = np.empty((self.size, self.size), dtype=np.int) + tests = np.empty((self.size, self.size), dtype=np.int_) num = order[index] base = np.delete(order, index)