Skip to content

Commit 6c46ef7

Browse files
use named parameters in numpy arange function
1 parent 6f6fe62 commit 6c46ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegate/muxing/persona.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async def _weight_distances(self, distances: np.ndarray) -> np.ndarray:
268268

269269
# Create positions array in reverse order (n-1, n-2, ..., 1, 0)
270270
# This makes the last element have position 0
271-
positions = np.arange(n - 1, -1, -1)
271+
positions = np.arange(start=n - 1, stop=-1, step=-1, dtype=np.float32)
272272

273273
# Create weights - now the last element (position 0) gets weight 1
274274
weights = self._distances_weight_factor**positions

0 commit comments

Comments
 (0)