Skip to content

Commit

Permalink
Fix njit
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-st committed Feb 9, 2022
1 parent 8f69b41 commit 4e3c91c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions darp.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def assign(droneNo, rows, cols, initial_positions, GridEnv, MetricMatrix, A):
A[i, j] = droneNo
return BWlist, A, ArrayOfElements


@njit
def constructBinaryImages(A, robo_start_point, rows, cols):
BinaryRobot = np.copy(A)
Expand All @@ -56,7 +55,6 @@ def constructBinaryImages(A, robo_start_point, rows, cols):

return BinaryRobot, BinaryNonRobot


@njit
def CalcConnectedMultiplier(rows, cols, dist1, dist2, CCvariation):
returnM = np.zeros((rows, cols))
Expand Down Expand Up @@ -237,8 +235,6 @@ def divideRegions(self):
image = np.uint8(self.connectivity[r, :, :])
num_labels, labels_im = cv2.connectedComponents(image, connectivity=4)
if num_labels > 2:
import pdb
pdb.set_trace()
ConnectedRobotRegions[r] = False
BinaryRobot, BinaryNonRobot = constructBinaryImages(labels_im, self.initial_positions[r], self.rows, self.cols)
ConnectedMultiplier = CalcConnectedMultiplier(self.rows, self.cols,
Expand Down
1 change: 0 additions & 1 deletion multiRobotPathPlanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from turns import turns
from PIL import Image


def get_area_map(path, area=0, obs=-1):
"""
Creates an array from a given png-image(path).
Expand Down

0 comments on commit 4e3c91c

Please sign in to comment.