From 73eca33d0bc9acb2273c7a0e336b1d25893d40ca Mon Sep 17 00:00:00 2001 From: Jonathan Feinberg Date: Fri, 13 Oct 2023 14:59:24 +0200 Subject: [PATCH] try u instead of uint32 --- src/vroom/input/input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vroom/input/input.py b/src/vroom/input/input.py index bbf3f2e..2a6238d 100644 --- a/src/vroom/input/input.py +++ b/src/vroom/input/input.py @@ -279,7 +279,7 @@ def set_durations_matrix( """ assert isinstance(profile, str) if not isinstance(matrix_input, _vroom.Matrix): - matrix_input = _vroom.Matrix(numpy.asarray(matrix_input, dtype="uint32")) + matrix_input = _vroom.Matrix(numpy.asarray(matrix_input, dtype="u")) self._set_durations_matrix(profile, matrix_input) def set_costs_matrix( @@ -299,7 +299,7 @@ def set_costs_matrix( """ assert isinstance(profile, str) if not isinstance(matrix_input, _vroom.Matrix): - matrix_input = _vroom.Matrix(numpy.asarray(matrix_input, dtype="uint32")) + matrix_input = _vroom.Matrix(numpy.asarray(matrix_input, dtype="u")) self._set_costs_matrix(profile, matrix_input) def solve(