|
44 | 44 | argmin, |
45 | 45 | abs, |
46 | 46 | round, |
47 | | - float_, |
| 47 | + float64, |
48 | 48 | int_, |
49 | 49 | fft, |
50 | 50 | arange, |
@@ -101,7 +101,7 @@ def _autocovariancefn(x, max_lag, biased=False, axis=0): |
101 | 101 |
|
102 | 102 | shape = list(y.shape) |
103 | 103 | shape[-1] = max_lag |
104 | | - ac = zeros(shape, dtype=float_) |
| 104 | + ac = zeros(shape, dtype=float64) |
105 | 105 |
|
106 | 106 | for i in range(min(max_lag, y.shape[-1] - 10)): |
107 | 107 | ac[..., i] = autocorrelation(y, i, True) |
@@ -796,7 +796,7 @@ def __init__(self): |
796 | 796 | ) |
797 | 797 |
|
798 | 798 | def _predict(self, *, fs, leg_length, gait, gait_aux): |
799 | | - pci = zeros(len(gait_aux["accel"]), dtype=float_) |
| 799 | + pci = zeros(len(gait_aux["accel"]), dtype=float64) |
800 | 800 |
|
801 | 801 | phase = gait["step time"] / gait["stride time"] # %, not degrees |
802 | 802 | for i in range(len(gait_aux["accel"])): |
@@ -869,7 +869,7 @@ def __init__(self): |
869 | 869 | super().__init__("gait symmetry index", __name__, depends=[StrideTime]) |
870 | 870 |
|
871 | 871 | def _predict(self, *, fs, leg_length, gait, gait_aux): |
872 | | - gsi = zeros(len(gait_aux["accel"]), dtype=float_) |
| 872 | + gsi = zeros(len(gait_aux["accel"]), dtype=float64) |
873 | 873 |
|
874 | 874 | # setup acceleration filter if its possible to use |
875 | 875 | if 0 < (2 * 10 / fs) < 1: |
@@ -942,7 +942,7 @@ def __init__(self): |
942 | 942 | super().__init__("step regularity - V", __name__, depends=[StepTime]) |
943 | 943 |
|
944 | 944 | def _predict(self, *, fs, leg_length, gait, gait_aux): |
945 | | - stepreg = full(len(gait_aux["accel"]), nan, dtype=float_) |
| 945 | + stepreg = full(len(gait_aux["accel"]), nan, dtype=float64) |
946 | 946 |
|
947 | 947 | for i in unique(gait_aux["inertial data i"]): |
948 | 948 | acc = gait_aux["accel"][i] |
@@ -1002,7 +1002,7 @@ def __init__(self): |
1002 | 1002 | super().__init__("stride regularity - V", __name__, depends=[StrideTime]) |
1003 | 1003 |
|
1004 | 1004 | def _predict(self, *, fs, leg_length, gait, gait_aux): |
1005 | | - stridereg = full(len(gait_aux["accel"]), nan, dtype=float_) |
| 1005 | + stridereg = full(len(gait_aux["accel"]), nan, dtype=float64) |
1006 | 1006 |
|
1007 | 1007 | for i in unique(gait_aux["inertial data i"]): |
1008 | 1008 | acc = gait_aux["accel"][i] |
|
0 commit comments