Skip to content

Commit

Permalink
Change coverage for special case
Browse files Browse the repository at this point in the history
  • Loading branch information
cbueth committed Apr 8, 2024
1 parent 2d70229 commit b3bd492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superblockify/metrics/distances.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def calculate_path_distance_matrix(
if np.array_equal(downcasted_indices, graph_matrix.indices):
graph_matrix.indices = downcasted_indices
else:
logger.warning("Downcasting indices to int32 failed.")
logger.warning("Downcasting indices to int32 failed.") # pragma: no cover

# Try to downcast indptr to int32
if graph_matrix.indptr.dtype != np.int32:
Expand All @@ -126,7 +126,7 @@ def calculate_path_distance_matrix(
if np.array_equal(downcasted_indptr, graph_matrix.indptr):
graph_matrix.indptr = downcasted_indptr
else:
logger.warning("Downcasting indptr to int32 failed.")
logger.warning("Downcasting indptr to int32 failed.") # pragma: no cover

start_time = time()
dist_full_graph, predecessors = dijkstra(
Expand Down

0 comments on commit b3bd492

Please sign in to comment.