Skip to content

Commit

Permalink
try u instead of uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathf committed Oct 13, 2023
1 parent d313bbe commit 73eca33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vroom/input/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit 73eca33

Please sign in to comment.