1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Chore: Remove the use of np.int

This commit is contained in:
LmeSzinc
2023-05-30 10:28:51 +08:00
parent 4382782130
commit 18cba1f9d0
5 changed files with 8 additions and 8 deletions

View File

@@ -147,7 +147,7 @@ def match_movable(before, spawn, after, fleets, fleet_step=2):
after = after + fleets
x = len(after)
y = len(before)
distance = np.ones((y, x), dtype=np.int) * base_weight
distance = np.ones((y, x), dtype=int) * base_weight
for i1, g1 in enumerate(before):
for i2, g2 in enumerate(after):
distance[i1, i2] = fleet_step - sum(abs(np.subtract(g1, g2)))